pandas.Index.identical

Index.identical(self, other) → bool[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.