Fix structure of the grouped dataframe
This commit is contained in:
parent
89d140cd7a
commit
ce8b89d1e2
@ -203,7 +203,7 @@ def prepare_building_stock_data():
|
||||
(building_data.type == "Heated area [Mm²]")
|
||||
& (building_data.detail != "Total")
|
||||
]
|
||||
area_tot = area.groupby(["country", "sector"]).sum()
|
||||
area_tot = area[["country", "sector", "value"]].groupby(["country", "sector"]).sum()
|
||||
area = pd.concat(
|
||||
[
|
||||
area,
|
||||
|
Loading…
Reference in New Issue
Block a user