We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e9f23d commit 0d67f22Copy full SHA for 0d67f22
pandas/io/parsers.py
@@ -2441,7 +2441,8 @@ def _clean_mapping(mapping):
2441
if is_bool_dtype(dt) and data[col][data[col] == ''].size:
2442
raise ValueError("Bool column has NA values in "
2443
"column {column}".format(column=col))
2444
- elif isinstance(clean_dtypes, string_types):
+ elif (isinstance(clean_dtypes, string_types) and
2445
+ is_bool_dtype(clean_dtypes)):
2446
for col, values in data.items():
2447
if any(isna(values)):
2448
0 commit comments