Update build_biomass_potentials.py

Maybe something in the middle? swiss is a list, while pop was a panda series.
This commit is contained in:
virio-andreyana 2023-02-22 13:00:06 +01:00 committed by GitHub
parent 74d31c4554
commit e80cab63ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,8 +28,7 @@ def build_nuts_population_data(year=2013):
swiss = [swiss.groupby(swiss.index.str[:i]).sum() for i in range(2, 6)]
# merge Europe + Switzerland
pop = pd.concat([pop, pd.concat(swiss)])
pop = pd.DataFrame(pop, columns=["total"])
pop = pd.concat([pop, pd.concat(swiss)]).to_frame("total")
# add missing manually
pop["AL"] = 2893