From 301a939b7ca496d9a96658d7f4834f85770901ab Mon Sep 17 00:00:00 2001 From: Noel Merket Date: Tue, 28 Nov 2023 07:44:17 -0700 Subject: [PATCH] fixing boolean type conversions in outputs --- buildstockbatch/postprocessing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildstockbatch/postprocessing.py b/buildstockbatch/postprocessing.py index 5b8910be..5da97db0 100644 --- a/buildstockbatch/postprocessing.py +++ b/buildstockbatch/postprocessing.py @@ -224,7 +224,7 @@ def read_results_json(fs, filename, all_cols=None): for missing_col in set(all_cols).difference(df.columns.values): df[missing_col] = None # Sorting is needed to ensure all dfs have same column order. Dask will fail otherwise. - df = df.reindex(sorted(df.columns), axis=1) + df = df.reindex(sorted(df.columns), axis=1).convert_dtypes(dtype_backend='pyarrow') return df