Below are two ways of accomplishing the same task: loading data from a .csv text file with three columns of data (say x, y, and \(\delta y\) ) and one row of text preceding the data. Each column of data becomes a Numerical Python array. In this example, the array names are angle, V_pd, and V_pd_delta.
This first method (used, for example, in the Python-based textbook
Computational Physics by Mark Newman) imports individual functions and modules from numpy as needed. We call this the
direct numpy import style. Here is an example: