# xarray.CFTimeIndex.shape

#### *property* CFTimeIndex.shape

Return a tuple of the shape of the underlying data.

Since an Index is always one-dimensional, this returns a tuple
with a single element equal to the number of elements in the Index.

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

`Index.ndim`
: Number of dimensions of the underlying data, by definition 1.

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

`Index.values`
: Return an array representing the data in the Index.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('60fe4790-2bca-4571-bf99-b236656c4caa','662cb2f5-37e8-4dd8-9bfe-3d2f256fd57e','a7ad51e8-e05c-47fb-896c-6a4de9aaf77f','../lite/tree/../notebooks/index.html?path=f71dffc9_3ee1_4a3d_b69b_96d0df615015.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> idx = pd.Index([1, 2, 3])
>>> idx
Index([1, 2, 3], dtype='int64')
>>> idx.shape
(3,)
```

<div id="a7ad51e8-e05c-47fb-896c-6a4de9aaf77f" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('60fe4790-2bca-4571-bf99-b236656c4caa','a7ad51e8-e05c-47fb-896c-6a4de9aaf77f')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('60fe4790-2bca-4571-bf99-b236656c4caa','a7ad51e8-e05c-47fb-896c-6a4de9aaf77f')">Open In Tab</button></div><div id="662cb2f5-37e8-4dd8-9bfe-3d2f256fd57e" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
