diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 006469f79780d..24caf6ee49b4a 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -545,7 +545,7 @@ def is_(self, other) -> bool: return True elif not hasattr(other, "_id"): return False - elif com.any_none(self._id, other._id): + elif self._id is None or other._id is None: return False else: return self._id is other._id