Skip to content

Commit 0d67f22

Browse files
committed
fix typo
1 parent 0e9f23d commit 0d67f22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/io/parsers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2441,7 +2441,8 @@ def _clean_mapping(mapping):
24412441
if is_bool_dtype(dt) and data[col][data[col] == ''].size:
24422442
raise ValueError("Bool column has NA values in "
24432443
"column {column}".format(column=col))
2444-
elif isinstance(clean_dtypes, string_types):
2444+
elif (isinstance(clean_dtypes, string_types) and
2445+
is_bool_dtype(clean_dtypes)):
24452446
for col, values in data.items():
24462447
if any(isna(values)):
24472448
raise ValueError("Bool column has NA values in "

0 commit comments

Comments
 (0)