Skip to content

Commit edc3bcf

Browse files
committed
use blk.dtype
1 parent f13cd4c commit edc3bcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9732,7 +9732,7 @@ def _where(
97329732
if not is_bool_dtype(cond):
97339733
raise TypeError(msg.format(dtype=cond.dtype))
97349734
else:
9735-
for _dt in cond.dtypes:
9735+
for _dt in [blk.dtype for blk in cond._mgr.blocks]:
97369736
if not is_bool_dtype(_dt):
97379737
raise TypeError(msg.format(dtype=_dt))
97389738
if cond._mgr.any_extension_types:

0 commit comments

Comments
 (0)