Bravo numpy!
Ok, now I have one more reason to use numpy instead of list in python.
From a CSV file, you can read into a numpy array:
* CSV file format: (test.csv)
A B C
1 2 3
4 5 6
* Python code:
Here we go :-)
Ok, now I have one more reason to use numpy instead of list in python.
From a CSV file, you can read into a numpy array:
* CSV file format: (test.csv)
A B C
1 2 3
4 5 6
* Python code:
>>import numpy
>>numpy.loadtxt('test.csv',delimiter=' ', dtype = float, skiprows=1)
[[ 1. 2. 3.]
[ 4. 5. 6.]]
Here we go :-)
Comments
Post a Comment