diff --git a/yli/utils.py b/yli/utils.py index d413f3f..937a36b 100644 --- a/yli/utils.py +++ b/yli/utils.py @@ -74,6 +74,10 @@ def convert_pandas_nullable(df): if df_cleaned is None: df_cleaned = df.copy() df_cleaned[col] = df[col].astype(str(df[col].dtype).lower()) + elif df[col].dtype == 'boolean': + if df_cleaned is None: + df_cleaned = df.copy() + df_cleaned[col] = df[col].astype('bool') if df_cleaned is None: return df