Using genfromtxt to import csv data with missing values in numpy

if you can ignore the 16 at the end of the file try using the

invalid_raise (bool, optional) parameter
if set to False it ignores all incomplete lines without throwing an exception

see here (its the last parameter before the examples)
http://docs.scipy.org/doc/numpy/reference/generated/numpy.genfromtxt.html

Leave a Comment