Is possible to construct a NumPy array from a python list?
Here is a more complete example:
import csv import numpy as np with open('filename','rb') as csvfile: cdl = list( csv.reader(csvfile,delimiter='\t')) print "Number of records = " + str(len(cdl)) #then later npcdl = np.array(cdl)
Hope this helps!!