# 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('fbf5d4b8-cb76-4e1b-a7a5-8fcb1a0a3a75','4e33e352-0483-49a9-a2cc-45231ae15c94','ff64831f-5432-4464-b580-96c6c7d2c76f','../lite/tree/../notebooks/index.html?path=cf4d8f97_a8b5_4733_91de_8c946325c553.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="ff64831f-5432-4464-b580-96c6c7d2c76f" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('fbf5d4b8-cb76-4e1b-a7a5-8fcb1a0a3a75','ff64831f-5432-4464-b580-96c6c7d2c76f')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('fbf5d4b8-cb76-4e1b-a7a5-8fcb1a0a3a75','ff64831f-5432-4464-b580-96c6c7d2c76f')">Open In Tab</button></div><div id="4e33e352-0483-49a9-a2cc-45231ae15c94" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
