# xarray.CFTimeIndex.identical

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

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

* **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('79de1982-c844-46c1-9034-79554635707e','2f43ca92-a15a-45c0-9b7e-20576ce784a0','930c59e8-4ef5-485a-b17d-ac68c4111072','../lite/tree/../notebooks/index.html?path=37f27d79_a568_4069_aa48_c8e8960f04f7.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="930c59e8-4ef5-485a-b17d-ac68c4111072" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('79de1982-c844-46c1-9034-79554635707e','930c59e8-4ef5-485a-b17d-ac68c4111072')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('79de1982-c844-46c1-9034-79554635707e','930c59e8-4ef5-485a-b17d-ac68c4111072')">Open In Tab</button></div><div id="2f43ca92-a15a-45c0-9b7e-20576ce784a0" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
