diff --git a/pandas/core/common.py b/pandas/core/common.py index 44cb36b8a3207..3c35e984d9e49 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -182,7 +182,8 @@ def _maybe_box_datetimelike(value): def is_bool_indexer(key): - if isinstance(key, (ABCSeries, np.ndarray)): + from pandas.core.index import Index + if isinstance(key, (ABCSeries, np.ndarray, Index)): if key.dtype == np.object_: key = np.asarray(_values_from_object(key))