Fix a column name in buildings data

This commit is contained in:
ekatef 2023-09-27 12:51:38 +03:00
parent 36fe57938c
commit 89d140cd7a

View File

@ -201,7 +201,7 @@ def prepare_building_stock_data():
# heated floor area ---------------------------------------------------------- # heated floor area ----------------------------------------------------------
area = building_data[ area = building_data[
(building_data.type == "Heated area [Mm²]") (building_data.type == "Heated area [Mm²]")
& (building_data.subsector != "Total") & (building_data.detail != "Total")
] ]
area_tot = area.groupby(["country", "sector"]).sum() area_tot = area.groupby(["country", "sector"]).sum()
area = pd.concat( area = pd.concat(