From 82cc42b69890ebaf4707d2fc989f18fd32ace99c Mon Sep 17 00:00:00 2001 From: "j.aschauer" Date: Tue, 11 Jun 2024 13:38:59 +0200 Subject: [PATCH] remove electricity costs from specific costs input data Fixes #366 --- app/ptxboa_functions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/ptxboa_functions.py b/app/ptxboa_functions.py index 81180ba4..79fa3b28 100644 --- a/app/ptxboa_functions.py +++ b/app/ptxboa_functions.py @@ -424,6 +424,10 @@ def get_data_type_from_input_data( values="value", ) + # remove electricity from specific costs + if data_type == "specific_costs": + df = df[~(df.index == "electricity")] + if scope == "world": df = remove_subregions(api=api, df=df, country_name=st.session_state["country"]) if scope in ["Argentina", "Morocco", "South Africa"]: