# 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('06f227bf-4851-41dd-b8e9-de96b37dca62','92963380-2549-45c6-b7d5-2347717e8cad','299bdbd9-8a10-480a-8cc0-8bbf8fa5be75','../lite/tree/../notebooks/index.html?path=44567d46_8656_4fca_b5e3_8d9058935d3f.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="299bdbd9-8a10-480a-8cc0-8bbf8fa5be75" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('06f227bf-4851-41dd-b8e9-de96b37dca62','299bdbd9-8a10-480a-8cc0-8bbf8fa5be75')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('06f227bf-4851-41dd-b8e9-de96b37dca62','299bdbd9-8a10-480a-8cc0-8bbf8fa5be75')">Open In Tab</button></div><div id="92963380-2549-45c6-b7d5-2347717e8cad" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
