# xarray.CFTimeIndex.size

#### *property* CFTimeIndex.size

Return the number of elements in the underlying data.

#### SEE ALSO
`Series.ndim`
: Number of dimensions of the underlying data, by definition 1.

`Series.shape`
: Return a tuple of the shape of the underlying data.

`Series.dtype`
: Return the dtype object of the underlying data.

`Series.values`
: Return Series as ndarray or ndarray-like depending on the dtype.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('22c968e6-5153-4f74-8d34-9acebd10b9b5','777ae8a9-f6d4-42f8-87e4-32e7ca6804ef','b7987595-db1c-4f73-9a89-d208ca271fb2','../lite/tree/../notebooks/index.html?path=290fcf34_ca3e_456c_ab3d_5bf1adaff7e8.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.size
3
```

For Index:

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

<div id="b7987595-db1c-4f73-9a89-d208ca271fb2" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('22c968e6-5153-4f74-8d34-9acebd10b9b5','b7987595-db1c-4f73-9a89-d208ca271fb2')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('22c968e6-5153-4f74-8d34-9acebd10b9b5','b7987595-db1c-4f73-9a89-d208ca271fb2')">Open In Tab</button></div><div id="777ae8a9-f6d4-42f8-87e4-32e7ca6804ef" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
