Skip to content Skip to sidebar Skip to footer

Numpy Genfromtxt Slower Than Pandas Read_csv

I'm loading a CSV file (if you want the specific file, it's the training csv from http://www.kaggle.com/c/loan-default-prediction). Loading the csv in numpy takes dramatically more

Solution 1:

'genfromtxt' from the Numpy module run two main loops. First one convert all the lines in a file to string and then other loop convert each string to their data type. But you get more flexibility in 'genfromtxt' than other command like loadtxt and read_csv.


Post a Comment for "Numpy Genfromtxt Slower Than Pandas Read_csv"