Skip to content

Commit 0e5d004

Browse files
authored
REGR/PERF: Index.is_ (#37400)
1 parent d592e5e commit 0e5d004

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)