# xarray.CFTimeIndex.unique

#### CFTimeIndex.unique(level=None)[[source]](https://github.com/pydata/xarray/blob/main/xarray/../.pixi/envs/doc/lib/python3.14/site-packages/pandas/core/indexes/base.py#L2817-L2852)

Return unique values in the index.

Unique values are returned in order of appearance, this does NOT sort.

* **Parameters:**
  **level** ([`int`](https://docs.python.org/3/builtins/functions.html#int) or [hashable](../user-guide/terminology.html.md#term-name), *optional*) – Only return values from specified level (for MultiIndex).
  If int, gets the level by integer position, else by level name.
* **Returns:**
  [`Index`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Index.html#pandas.Index) – Unique values in the index.

#### SEE ALSO
[`unique`](#xarray.CFTimeIndex.unique)
: Numpy array of unique values in that column.

`Series.unique`
: Return unique values of Series object.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('a92480a4-4c7a-4d64-9d62-111b5479f809','2058a60f-1839-4007-8fe0-825a129e39e6','d8de3517-5471-4216-a49b-3f4de50b9a5d','../lite/tree/../notebooks/index.html?path=22bf539d_e3eb_4e45_b207_d5dcaab7e26e.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> idx = pd.Index([1, 1, 2, 3, 3])
>>> idx.unique()
Index([1, 2, 3], dtype='int64')
```

<div id="d8de3517-5471-4216-a49b-3f4de50b9a5d" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('a92480a4-4c7a-4d64-9d62-111b5479f809','d8de3517-5471-4216-a49b-3f4de50b9a5d')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('a92480a4-4c7a-4d64-9d62-111b5479f809','d8de3517-5471-4216-a49b-3f4de50b9a5d')">Open In Tab</button></div><div id="2058a60f-1839-4007-8fe0-825a129e39e6" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
