# xarray.CFTimeIndex.is_unique

#### CFTimeIndex.is_unique

Return if the index has unique values.

The uniqueness check is based on exact equality of values. An index
with no repeated values returns `True`, otherwise `False`.

* **Returns:**
  [`bool`](https://docs.python.org/3/builtins/functions.html#bool)

#### SEE ALSO
`Index.has_duplicates`
: Inverse method that checks if it has duplicate values.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('b9b750a2-737d-4f2f-ab24-8dd2635cdf29','87e7f1d6-9b87-40fe-ade1-8b48f46cd6ed','5cd21a24-5a2b-4f3a-9b3f-b15f7e556ab6','../lite/tree/../notebooks/index.html?path=c8fed86a_d8f4_4baa_ad60_df3c73a2ce36.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> idx = pd.Index([1, 5, 7, 7])
>>> idx.is_unique
False
```

```pycon
>>> idx = pd.Index([1, 5, 7])
>>> idx.is_unique
True
```

```pycon
>>> idx = pd.Index(["Watermelon", "Orange", "Apple", "Watermelon"]).astype(
...     "category"
... )
>>> idx.is_unique
False
```

```pycon
>>> idx = pd.Index(["Orange", "Apple", "Watermelon"]).astype("category")
>>> idx.is_unique
True
```

<div id="5cd21a24-5a2b-4f3a-9b3f-b15f7e556ab6" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('b9b750a2-737d-4f2f-ab24-8dd2635cdf29','5cd21a24-5a2b-4f3a-9b3f-b15f7e556ab6')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('b9b750a2-737d-4f2f-ab24-8dd2635cdf29','5cd21a24-5a2b-4f3a-9b3f-b15f7e556ab6')">Open In Tab</button></div><div id="87e7f1d6-9b87-40fe-ade1-8b48f46cd6ed" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
