Most realistic applications deal with large datasets and will require results to be stored in persistent media, such as a hard disk. NumPy arrays can be stored in either text or binary format and binary files can be optionally compressed. We start the section by showing you a recipe to store files in text format.
Storing and retrieving NumPy arrays
How to do it...
Let us proceed with getting our queries about storing and retrieving NumPy arrays resolved.
Storing a NumPy array in text format
To store a single NumPy array to the disk in text format, use the savetxt...