# 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('3d042cd2-72ef-4910-8058-2ac9e8350271','cda362c4-4e6c-4100-acb0-6575d0fff030','c6018488-eedc-4b8a-ac6c-fe36822956a0','../lite/tree/../notebooks/index.html?path=0cc57639_828e_4623_8c6f_0d35c417d4c6.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="c6018488-eedc-4b8a-ac6c-fe36822956a0" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('3d042cd2-72ef-4910-8058-2ac9e8350271','c6018488-eedc-4b8a-ac6c-fe36822956a0')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('3d042cd2-72ef-4910-8058-2ac9e8350271','c6018488-eedc-4b8a-ac6c-fe36822956a0')">Open In Tab</button></div><div id="cda362c4-4e6c-4100-acb0-6575d0fff030" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
