pandas.Index.memory_usage — pandas 1.0.1 documentation (original) (raw)

Index. memory_usage(self, deep=False)[source]

Memory usage of the values.

Parameters

deepbool

Introspect the data deeply, interrogateobject dtypes for system-level memory consumption.

Returns

bytes used

See also

numpy.ndarray.nbytes

Notes

Memory usage does not include memory consumed by elements that are not components of the array if deep=False or if used on PyPy