Fix column with total values

This commit is contained in:
ekatef 2023-10-25 16:42:05 +03:00
parent 1ad7035ec4
commit 2952d99dfa

View File

@ -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(