# xarray.CFTimeIndex.identical

#### CFTimeIndex.identical(other)[[source]](https://github.com/pydata/xarray/blob/main/xarray/../.pixi/envs/doc/lib/python3.15/site-packages/pandas/core/indexes/base.py#L5956-L6002)

Similar to equals, but checks that object attributes and types are also equal.

While [`Index.equals()`](xarray.Index.equals.html.md#xarray.Index.equals) only checks that the elements are the same,
this method additionally verifies that the Index objects have matching
types and attributes (e.g., `name`).

* **Parameters:**
  **other** ([`Index`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Index.html#pandas.Index)) – The Index object you want to compare with the current Index object.
* **Returns:**
  [`bool`](https://docs.python.org/3/builtins/functions.html#bool) – If two Index objects have equal elements and same type True,
  otherwise False.

#### SEE ALSO
[`Index.equals`](xarray.Index.equals.html.md#xarray.Index.equals)
: Determine if two Index object are equal.

`Index.has_duplicates`
: Check if the Index has duplicate values.

`Index.is_unique`
: Return if the index has unique values.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('b07e2884-bb19-4415-8182-fdda4cb45376','9ee87f22-4c3d-4023-97e0-5942c3eccf8e','48cf366a-8132-4037-ac56-63de04c9f75a','../lite/tree/../notebooks/index.html?path=19227fb3_be6e_4abe_ae5d_0eef6a758396.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> idx1 = pd.Index(["1", "2", "3"])
>>> idx2 = pd.Index(["1", "2", "3"])
>>> idx2.identical(idx1)
True
```

```pycon
>>> idx1 = pd.Index(["1", "2", "3"], name="A")
>>> idx2 = pd.Index(["1", "2", "3"], name="B")
>>> idx2.identical(idx1)
False
```

<div id="48cf366a-8132-4037-ac56-63de04c9f75a" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('b07e2884-bb19-4415-8182-fdda4cb45376','48cf366a-8132-4037-ac56-63de04c9f75a')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('b07e2884-bb19-4415-8182-fdda4cb45376','48cf366a-8132-4037-ac56-63de04c9f75a')">Open In Tab</button></div><div id="9ee87f22-4c3d-4023-97e0-5942c3eccf8e" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
