Tuesday, September 10, 2013

How to save big array so that it will take less memory in python?

How to save big array so that it will take less memory in python?

I am new to python. I have a big array such as, a = np.array([43200,4000])
and I need to save this, as I need it for future processing. when I try to
save it with a np.savetxt, the txt file is too large and my program runs
into memory error as I need to process 5 files of same size. Is their any
best way to save huge arrays so that it will take less memory.
Thanks.

No comments:

Post a Comment