# 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('c359523c-864c-4329-ad43-7b0e7ff3822f','3b160713-39d1-4ade-9527-153362108167','b0403897-5e0e-4427-9d33-efb29915016c','../lite/tree/../notebooks/index.html?path=c4a4cc67_9365_40de_8b10_b5f8ce2854ba.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="b0403897-5e0e-4427-9d33-efb29915016c" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('c359523c-864c-4329-ad43-7b0e7ff3822f','b0403897-5e0e-4427-9d33-efb29915016c')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('c359523c-864c-4329-ad43-7b0e7ff3822f','b0403897-5e0e-4427-9d33-efb29915016c')">Open In Tab</button></div><div id="3b160713-39d1-4ade-9527-153362108167" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
