build_biomass: fix geopandas compat with pandas v2.0
This commit is contained in:
parent
6d7eae8ad2
commit
79501b5741
@ -197,7 +197,7 @@ def convert_nuts2_to_regions(bio_nuts2, regions):
|
|||||||
)
|
)
|
||||||
overlay[adjust_cols] = overlay[adjust_cols].multiply(overlay["share"], axis=0)
|
overlay[adjust_cols] = overlay[adjust_cols].multiply(overlay["share"], axis=0)
|
||||||
|
|
||||||
bio_regions = overlay.groupby("name").sum()
|
bio_regions = overlay.dissolve("name", aggfunc="sum")
|
||||||
|
|
||||||
bio_regions.drop(["area_nuts2", "share"], axis=1, inplace=True)
|
bio_regions.drop(["area_nuts2", "share"], axis=1, inplace=True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user