# xarray.CFTimeIndex.ndim

#### *property* CFTimeIndex.ndim

Number of dimensions of the underlying data, by definition 1.

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

`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('32e72e9f-f663-43cf-b7cb-998a54567e94','c31389a3-5c73-4685-8f61-b9954a64532c','7b9ba8fe-a290-486a-9e94-e8bbe0ee8671','../lite/tree/../notebooks/index.html?path=5e383ce6_4ee7_433e_827a_e61ccddb9137.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> s = pd.Series(["Ant", "Bear", "Cow"])
>>> s
0     Ant
1    Bear
2     Cow
dtype: str
>>> s.ndim
1
```

For Index:

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

<div id="7b9ba8fe-a290-486a-9e94-e8bbe0ee8671" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('32e72e9f-f663-43cf-b7cb-998a54567e94','7b9ba8fe-a290-486a-9e94-e8bbe0ee8671')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('32e72e9f-f663-43cf-b7cb-998a54567e94','7b9ba8fe-a290-486a-9e94-e8bbe0ee8671')">Open In Tab</button></div><div id="c31389a3-5c73-4685-8f61-b9954a64532c" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
