pandas / 1.4.0 / reference / api / pandas.index.identical.html /

pandas.Index.identical

final Index. identical ( other ) [source]

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

Returns
bool

If two Index objects have equal elements and same type True, otherwise False.

© 2008–2022, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.4.0/reference/api/pandas.Index.identical.html