# 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('85e7280e-142b-4582-8b02-ba5fa114a8c6','34fa5602-4b63-4564-a9a7-3ca12cfadf49','2fb5c818-50e0-431c-ab27-861106bb211a','../lite/tree/../notebooks/index.html?path=6476695b_4690_4c48_8225_3e0d54748a5a.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="2fb5c818-50e0-431c-ab27-861106bb211a" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('85e7280e-142b-4582-8b02-ba5fa114a8c6','2fb5c818-50e0-431c-ab27-861106bb211a')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('85e7280e-142b-4582-8b02-ba5fa114a8c6','2fb5c818-50e0-431c-ab27-861106bb211a')">Open In Tab</button></div><div id="34fa5602-4b63-4564-a9a7-3ca12cfadf49" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
