Skip to content

Commit

Permalink
fixing boolean type conversions in outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerket committed Nov 28, 2023
1 parent 22feb33 commit 301a939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildstockbatch/postprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 301a939

Please sign in to comment.