# xarray.CFTimeIndex.nbytes

#### *property* CFTimeIndex.nbytes

Return the number of bytes in the underlying data.

Includes only the memory used by the array values; overhead such as
the index is not included. Useful for estimating memory usage.

#### SEE ALSO
`Series.ndim`
: Number of dimensions of the underlying data.

`Series.size`
: Return the number of elements in the underlying data.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('d9245f5e-613b-49c1-9364-9614fcfa7e4b','d1e22799-1fdd-4d87-80df-d8ea5bcd3da6','d00b1a8c-4b5a-41cd-932c-ded878e2efdb','../lite/tree/../notebooks/index.html?path=5deecabb_6c02_4b7a_a275_5bc1c2b4ad54.ipynb','None')">Try it in your browser!</button></div>

For Series:

```pycon
>>> s = pd.Series(["Ant", "Bear", "Cow"])
>>> s
0     Ant
1    Bear
2     Cow
dtype: str
>>> s.nbytes
34
```

For Index:

```pycon
>>> idx = pd.Index([1, 2, 3])
>>> idx
Index([1, 2, 3], dtype='int64')
>>> idx.nbytes
24
```

<div id="d00b1a8c-4b5a-41cd-932c-ded878e2efdb" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('d9245f5e-613b-49c1-9364-9614fcfa7e4b','d00b1a8c-4b5a-41cd-932c-ded878e2efdb')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('d9245f5e-613b-49c1-9364-9614fcfa7e4b','d00b1a8c-4b5a-41cd-932c-ded878e2efdb')">Open In Tab</button></div><div id="d1e22799-1fdd-4d87-80df-d8ea5bcd3da6" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
