pandas/core/index.py
def equals(self, other):
        """
        Determines if two Index objects contain the same elements.
        """
        if self.is_(other):
            return True

        # if not isinstance(other, Int64Index):
        #     return False

        try:
            return array_equivalent(self, other)
        except TypeError:
            # e.g. fails in numpy 1.6 with DatetimeIndex #1681
            return False

        Determines if two Index objects contain the same elements.
        
Determines if two Index objects contain the same elements.
Determines if two Index objects contain the same elements .
def equals(self, other):
        if self.is_(other):
            return True
        try:
            return array_equivalent(self, other)
        except TypeError:
            return False
def equals ( self , other ) : if self . is_ ( other ) : return True try : return array_equivalent ( self , other ) except TypeError : return False
Determines if two Index objects contain the same elements.
Determines if two Index objects contain the same elements .
"""
        Determines if two Index objects contain the same elements.
        """ # if not isinstance(other, Int64Index): #     return False # e.g. fails in numpy 1.6 with DatetimeIndex #1681
self
other