I want to save a large uint8 numpy array for use later. How can I do that using the least amount of storage possible?
Edit: Encoding the file in UTF-8 or ASCII makes the file way larger than it needs to be.
I want to save a large uint8 numpy array for use later. How can I do that using the least amount of storage possible?
Edit: Encoding the file in UTF-8 or ASCII makes the file way larger than it needs to be.
Numpy's save_compressed will save the array into a npz file using zip compression.
Apart from being compressed, it allows you also to save multiple arrays into the same file which might help you to save some space as well