Re: [Tutor] reading large text file as numpy array

2011-02-23 Thread Peter Otten
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()? ___ Tutor maillist - Tutor@python.org To uns

[Tutor] reading large text file as numpy array

2011-02-22 Thread Jaidev Deshpande
Dear All 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? Also, is it possible to save a session (like in MATLAB) and reload it later? thanks ___ Tutor maillist