Skip to content

Commit

Permalink
Merge pull request #668 from PyPSA/0523-deprecations
Browse files Browse the repository at this point in the history
address geopandas future warning
  • Loading branch information
fneum committed May 17, 2023
2 parents c1bc7c0 + 7d4dacf commit 859e32f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ def nuts3(country_shapes, nuts3, nuts3pop, nuts3gdp, ch_cantons, ch_popgdp):
manual = gpd.GeoDataFrame(
[["BA1", "BA", 3871.0], ["RS1", "RS", 7210.0], ["AL1", "AL", 2893.0]],
columns=["NUTS_ID", "country", "pop"],
geometry=gpd.GeoSeries(),
)
manual["geometry"] = manual["country"].map(country_shapes)
manual = manual.dropna()
Expand Down

0 comments on commit 859e32f

Please sign in to comment.