Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -9732,7 +9732,7 @@ def _where(
if not is_bool_dtype(cond):
raise TypeError(msg.format(dtype=cond.dtype))
else:
for _dt in cond.dtypes:
for _dt in [blk.dtype for blk in cond._mgr.blocks]:
if not is_bool_dtype(_dt):
raise TypeError(msg.format(dtype=_dt))
if cond._mgr.any_extension_types:
Expand Down