pandas.Index.memory_usage

pandas 3.1.1 · Index objects · method

Report bytes accounted for by pandas. For object data, deep=True includes more of the referenced values.

Call syntax

Index.memory_usage(deep=False)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
deep Optional
Positional or keyword
Default False
bool

Choose whether to include or copy underlying object data where supported.

Returns

bytes used