[Tutor] reading large text file as numpy array

Peter Otten __peter__ at web.de
Wed Feb 23 10:28:15 CET 2011


Jaidev Deshpande wrote:

> I have a large text file with more than 50k lines and about 784 floats in
> each line.
> 
> How can I read the whole file as a single numpy array?

Have you tried numpy.loadtxt()?




More information about the Tutor mailing list