Skip to content

Commit 54af0dc

Browse files
committed
1 parent f165b90 commit 54af0dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ def _maybe_box_datetimelike(value):
182182

183183

184184
def is_bool_indexer(key):
185-
if isinstance(key, (ABCSeries, np.ndarray)):
185+
from pandas.core.index import Index
186+
if isinstance(key, (ABCSeries, np.ndarray, Index)):
186187
if key.dtype == np.object_:
187188
key = np.asarray(_values_from_object(key))
188189

0 commit comments

Comments
 (0)