If you’re running into memory issues because your NumPy arrays are too large, one of the basic approaches to reducing memory usage is compression. By changing how you represent your data, you can reduce memory usage and shrink your array’s footprint—often without changing the bulk of your code.
In this article we’ll cover:
* Reducing memory usage via smaller dtypes.
* Sparse arrays.
* Some situations where these solutions won’t work.
Comments