pandas.Index.identical

Index.identical(self, other)bool[source]

Similar to equals, but check that other comparable attributes are also equal.

Returns
bool

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