You can use PyTables to create a hierarchical data format (HDF) file for storing data. This gives some interesting parameters in memory that associate the object you are working with with the file in which it was saved.
Here's another StackOverflow question that demonstrates how to do this: How to store a multidimensional NumPy array in PyTables.
If you are ready to work with your array as a Pandas DataFrame object, you can also use the Pandas interface for PyTables / HDF5, for example:
import pandas import numpy as np a = np.ones((43200, 4000))
With files of this size, you might wonder if your application can be executed using a parallel algorithm and potentially only apply to subsets of large arrays, and not to use the entire array before continuing.
ely
source share