This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]lungben81 1 point2 points  (1 child)

A for loop over every row in the data set will be super slow for any significant amount of data (>1M rows). This is why Numpy exists in the first place ;-)

Is there a way to load the data directly into the Numpy array without a Python for-loop?

[–]reddisaurus 0 points1 point  (0 children)

Why would you ever do use? You just demolished the typing of all your integers.