0

I have a very large size multi-dimensional numpy array. I want to save it so as to save time. I am using pickle for that purpose.

pickle.dump( arrTotal, open( "arrTotal.p", "wb" ) ) 

But I am getting Memory Error when I try to save it this way. Is there some other way I can do it without causing memory error?

1 Answer 1

2

Pickle is almost certainly not an ideal format for saving numpy data...

I'd recommend trying something like numpy.savez, numpy.save or numpy.savez_compressed.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, I just tried using numpy.savez. But, still I am getting the same Memory Error

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.