Skip to content

Commit 7bf9b52

Browse files
topper-123Kevin D Smith
authored andcommitted
REGR/PERF: Index.is_ (pandas-dev#37400)
1 parent b537437 commit 7bf9b52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def is_(self, other) -> bool:
545545
return True
546546
elif not hasattr(other, "_id"):
547547
return False
548-
elif com.any_none(self._id, other._id):
548+
elif self._id is None or other._id is None:
549549
return False
550550
else:
551551
return self._id is other._id

0 commit comments

Comments
 (0)