# 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('3df33fb3-78fa-4b58-94bb-b9c0888840bd','79db00a9-eb4c-4cc3-85af-546fc0566403','f2ed357f-3e42-47f5-88c6-8ab425ed7c3a','../lite/tree/../notebooks/index.html?path=771e5418_c10e_4731_a17f_69e0ef8a8d48.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> idx = pd.Index([1, 2, 3])
>>> idx.memory_usage()
24
```

<div id="f2ed357f-3e42-47f5-88c6-8ab425ed7c3a" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('3df33fb3-78fa-4b58-94bb-b9c0888840bd','f2ed357f-3e42-47f5-88c6-8ab425ed7c3a')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('3df33fb3-78fa-4b58-94bb-b9c0888840bd','f2ed357f-3e42-47f5-88c6-8ab425ed7c3a')">Open In Tab</button></div><div id="79db00a9-eb4c-4cc3-85af-546fc0566403" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
