add keep only non negative carbon change to carbon model

This commit is contained in:
Michael Duong 2023-12-22 09:51:57 +00:00
parent 718003b3d9
commit ae53499742
2 changed files with 6 additions and 0 deletions

View file

@ -23,6 +23,11 @@ def keep_negative_heat_change(df):
return df
def keep_non_negative_carbon_ending(df):
df = df[df["CARBON_ENDING"] > 0]
return df
def keep_negative_carbon_change(df):
df = df[df["CARBON_CHANGE"] < 0]
return df
@ -68,6 +73,7 @@ business_logic = {
"keep_negative_carbon_change": keep_negative_carbon_change,
"remove_top_1_percent_heat_demand": remove_top_1_percent_heat_demand,
"remove_top_1_percent_carbon": remove_top_1_percent_carbon,
"keep_non_negative_carbon_ending": keep_non_negative_carbon_ending
# "remove_starting_columns": remove_starting_columns
# "keep_ENDING_COLUMNS": keep_ending_columns
}