xorbits.pandas.Index.memory_usage#

Index.memory_usage(deep=False)#

Memory usage of the values.

参数

deep (bool, default False) – Introspect the data deeply, interrogate object dtypes for system-level memory consumption.

返回类型

bytes used

参见

numpy.ndarray.nbytes

Total bytes consumed by the elements of the array.

提示

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

实际案例

>>> idx = pd.Index([1, 2, 3])  
>>> idx.memory_usage()  
24

This docstring was copied from pandas.core.indexes.base.Index.