[Numpy-discussion] how to save a large array into a file quickly

Alan G Isaac aisaac@american....
Wed Oct 15 07:40:20 CDT 2008

On 10/14/2008 9:23 PM frank wang apparently wrote:
> I have a large ndarray that I want to dump to a file. I know that I can 
> use a for loop to write one data at a time. Since Python is a very 
> powerfully language, I want to find a way that will dump the data fast 
> and clean. The data can be in floating point or integer.

Use the ``tofile()`` method:

Alan Isaac

More information about the Numpy-discussion mailing list