# xarray.CFTimeIndex.names

#### *property* CFTimeIndex.names

Get names on index.

This method returns a FrozenList containing the names of the object.
It’s primarily intended for internal use.

* **Returns:**
  `FrozenList` – A FrozenList containing the object’s names, contains None if the object
  does not have a name.

#### SEE ALSO
`Index.name`
: Index name as a string, or None for MultiIndex.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('3eb9947c-6c8a-4595-ab70-60512818063b','45996720-7a40-4491-a54d-69edec5c88d5','8fd0ea5a-3de1-44a1-84c9-50c2c52a9e0f','../lite/tree/../notebooks/index.html?path=7e2de8a9_245b_43bb_ab86_7ac7d20939de.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> idx = pd.Index([1, 2, 3], name="x")
>>> idx.names
FrozenList(['x'])
```

```pycon
>>> idx = pd.Index([1, 2, 3], name=("x", "y"))
>>> idx.names
FrozenList([('x', 'y')])
```

If the index does not have a name set:

```pycon
>>> idx = pd.Index([1, 2, 3])
>>> idx.names
FrozenList([None])
```

<div id="8fd0ea5a-3de1-44a1-84c9-50c2c52a9e0f" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('3eb9947c-6c8a-4595-ab70-60512818063b','8fd0ea5a-3de1-44a1-84c9-50c2c52a9e0f')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('3eb9947c-6c8a-4595-ab70-60512818063b','8fd0ea5a-3de1-44a1-84c9-50c2c52a9e0f')">Open In Tab</button></div><div id="45996720-7a40-4491-a54d-69edec5c88d5" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
