From 1cd53fa2b0dc8033ea5ca1ef68bd81047d81340d Mon Sep 17 00:00:00 2001 From: tp Date: Sun, 25 Oct 2020 11:22:41 +0000 Subject: [PATCH] REGR/PERF: Index.is_ --- pandas/core/indexes/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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