cf.Index.__eq__

Index.__eq__(y)[source]

The rich comparison operator ==

x.__eq__(y) <==> x==y