mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
almost completed the mds output
This commit is contained in:
parent
ad82b15c6e
commit
17f653340b
1 changed files with 5 additions and 0 deletions
|
|
@ -251,9 +251,14 @@ class Outputs:
|
|||
].sum().reset_index()
|
||||
|
||||
scenario_mds = mds.merge(
|
||||
scenario_measure_matrix, how="left", on="property_id"
|
||||
).merge(
|
||||
recommendation_impacts, how="left", on="property_id"
|
||||
)
|
||||
# If we have no recommendations, sap_points, kwh_savings, head_demand will be NaN
|
||||
to_clean = [c for c in recommendation_impacts.columns if c != "property_id"]
|
||||
for col in to_clean:
|
||||
scenario_mds[col].fillna(0, inplace=True)
|
||||
scenario_mds.fillna(0, inplace=True)
|
||||
scenario_mds["Post SAP"] = scenario_mds["EPC Source"] + scenario_mds["sap_points"]
|
||||
# Round Post SAP down to the nearest integer
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue