Skip to content

Commit

Permalink
DOC: clarify that Index.equals(non_index) returns False (#27105)
Browse files Browse the repository at this point in the history
closes #14411
  • Loading branch information
toobaz authored and jorisvandenbossche committed Jun 28, 2019
1 parent 3a53954 commit 9693230
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4170,7 +4170,8 @@ def equals(self, other):
Returns
-------
bool
If two Index objects have equal elements True, otherwise False.
True if "other" is an Index and it has the same elements as calling
index; False otherwise.
"""
if self.is_(other):
return True
Expand Down

0 comments on commit 9693230

Please sign in to comment.