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:
parent
74d31c4554
commit
e80cab63ca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user