Skip to content

Commit 9693230

Browse files
toobazjorisvandenbossche
authored andcommitted
DOC: clarify that Index.equals(non_index) returns False (#27105)
closes #14411
1 parent 3a53954 commit 9693230

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/indexes/base.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4170,7 +4170,8 @@ def equals(self, other):
41704170
Returns
41714171
-------
41724172
bool
4173-
If two Index objects have equal elements True, otherwise False.
4173+
True if "other" is an Index and it has the same elements as calling
4174+
index; False otherwise.
41744175
"""
41754176
if self.is_(other):
41764177
return True

0 commit comments

Comments
 (0)