Skip to content

Commit

Permalink
Use replace strict
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeee committed Aug 16, 2024
1 parent f8ac8f8 commit 587d337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildstock_query/tools/upgrades_visualizer/viz_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def init_monthly_results(self, metadata_df):
run_obj.save_cache()
monthly_df = pl.from_pandas(monthly_vals, include_index=True)
monthly_df = monthly_df.with_columns(pl.col('time').dt.month().alias("month"))
monthly_df = monthly_df.with_columns(pl.col('month').replace(num2month).alias("month"))
monthly_df = monthly_df.with_columns(pl.col('month').replace_strict(num2month).alias("month"))
modified_cols = []
for col in ts_cols:
# scale values down to per building and convert to m_btu to match with annual results
Expand Down

0 comments on commit 587d337

Please sign in to comment.