def equals(self, other):
        if self.is_(other):
            return True

        if not isinstance(other, Index):
            return False

        return array_equivalent(_values_from_object(self),
                                _values_from_object(other))
Determines if two Index objects contain the same elements.
dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index.equals