# 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('23e2c855-11a1-4a79-b238-c19642149659','801f722f-8d54-4055-b553-2a32a9e9d74e','6723a05e-a997-4e26-b1f6-1d01b59951e3','../lite/tree/../notebooks/index.html?path=d9f472a7_20d1_45fe_83df_a74f2f2728e1.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="6723a05e-a997-4e26-b1f6-1d01b59951e3" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('23e2c855-11a1-4a79-b238-c19642149659','6723a05e-a997-4e26-b1f6-1d01b59951e3')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('23e2c855-11a1-4a79-b238-c19642149659','6723a05e-a997-4e26-b1f6-1d01b59951e3')">Open In Tab</button></div><div id="801f722f-8d54-4055-b553-2a32a9e9d74e" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
