Skip to content

Commit

Permalink
Fix crs deprcation in geopandas
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Jun 14, 2024
1 parent 6757906 commit 16bcc5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_folium.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def test_choropleth_geopandas_numeric(self):
geo_data = json.load(f)

geo_data_frame = gpd.GeoDataFrame.from_features(geo_data["features"])
geo_data_frame.crs = {"init": "epsg:4326"}
geo_data_frame = geo_data_frame.set_crs("epsg: 4326")
fill_color = "BuPu"
key_on = "feature.id"

Expand Down Expand Up @@ -302,7 +302,7 @@ def test_choropleth_geopandas_mixed(self):
geo_data = json.load(f)

geo_data_frame = gpd.GeoDataFrame.from_features(geo_data["features"])
geo_data_frame.crs = {"init": "epsg:4326"}
geo_data_frame = geo_data_frame.set_crs("epsg: 4326")
data = pd.DataFrame(
{
"idx": {"0": 0, "1": "1", "2": 2, "3": 3, "4": 4, "5": 5},
Expand Down Expand Up @@ -348,7 +348,7 @@ def test_choropleth_geopandas_str(self):
geo_data = json.load(f)

geo_data_frame = gpd.GeoDataFrame.from_features(geo_data["features"])
geo_data_frame.crs = {"init": "epsg:4326"}
geo_data_frame = geo_data_frame.set_crs("epsg: 4326")
data = pd.DataFrame(
{
"idx": {"0": "0", "1": "1", "2": "2", "3": "3", "4": "4", "5": "5"},
Expand Down

0 comments on commit 16bcc5c

Please sign in to comment.