# xarray.CFTimeIndex.memory_usage

#### CFTimeIndex.memory_usage(deep=False)[[source]](https://github.com/pydata/xarray/blob/main/xarray/../.pixi/envs/doc/lib/python3.14/site-packages/pandas/core/indexes/base.py#L5196-L5232)

Memory usage of the values.

* **Parameters:**
  **deep** ([`bool`](https://docs.python.org/3/builtins/functions.html#bool), *default* [`False`](https://docs.python.org/3/builtins/constants.html#False)) – Introspect the data deeply, interrogate
  object dtypes for system-level memory consumption.
* **Returns:**
  `bytes used` – Returns memory usage of the values in the Index in bytes.

#### SEE ALSO
[`numpy.ndarray.nbytes`](https://numpy.org/doc/stable/reference/generated/numpy.ndarray.nbytes.html#numpy.ndarray.nbytes)
: Total bytes consumed by the elements of the array.

### 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

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('f6f2b31c-178e-462e-b8c0-042fdef731cd','adcee98c-8e45-4cdd-b3c7-3040dc5b8cbd','43f5b91f-26d8-4a42-9f88-0ed3ab0bfe1e','../lite/tree/../notebooks/index.html?path=0c4002cd_5d92_48ef_952b_ae1219735b5b.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> idx = pd.Index([1, 2, 3])
>>> idx.memory_usage()
24
```

<div id="43f5b91f-26d8-4a42-9f88-0ed3ab0bfe1e" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('f6f2b31c-178e-462e-b8c0-042fdef731cd','43f5b91f-26d8-4a42-9f88-0ed3ab0bfe1e')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('f6f2b31c-178e-462e-b8c0-042fdef731cd','43f5b91f-26d8-4a42-9f88-0ed3ab0bfe1e')">Open In Tab</button></div><div id="adcee98c-8e45-4cdd-b3c7-3040dc5b8cbd" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
