Using genfromtxt to import csv data with missing values in numpy Using genfromtxt to import csv data with missing values in numpy numpy numpy

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) parameterif 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


The command filling_values also helped me. I set it to zero. Thus each empty value is set to zero. It probably doesn't always make sense, but maybe it will help you.