From 2952d99dfa8a92ae75982971c6697c2798738a75 Mon Sep 17 00:00:00 2001 From: ekatef Date: Wed, 25 Oct 2023 16:42:05 +0300 Subject: [PATCH] Fix column with total values --- scripts/build_retro_cost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_retro_cost.py b/scripts/build_retro_cost.py index 1d8da59c..d121e7bd 100644 --- a/scripts/build_retro_cost.py +++ b/scripts/build_retro_cost.py @@ -203,7 +203,7 @@ def prepare_building_stock_data(): # heated floor area ---------------------------------------------------------- area = building_data[ - (building_data.type == "Heated area [Mm²]") & (building_data.detail != "Total") + (building_data.type == "Heated area [Mm²]") & (building_data.subsector != "Total") ] area_tot = area[["country", "sector", "value"]].groupby(["country", "sector"]).sum() area = pd.concat(