# xarray.CFTimeIndex.unique

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

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('b719ba26-3ae8-4b6f-93dd-39c31747a08f','4f8b46b7-6bf2-4de5-8ee2-0ee1643a8fa6','214ba94e-0841-49ac-81b3-4a41e037e5c3','../lite/tree/../notebooks/index.html?path=e7817238_9f2c_4cb7_983f_b5dcbb53fb4f.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="214ba94e-0841-49ac-81b3-4a41e037e5c3" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('b719ba26-3ae8-4b6f-93dd-39c31747a08f','214ba94e-0841-49ac-81b3-4a41e037e5c3')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('b719ba26-3ae8-4b6f-93dd-39c31747a08f','214ba94e-0841-49ac-81b3-4a41e037e5c3')">Open In Tab</button></div><div id="4f8b46b7-6bf2-4de5-8ee2-0ee1643a8fa6" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
