Skip to content

Commit

Permalink
Merge pull request #1968 from ocefpaf/fix_crs_deprecation
Browse files Browse the repository at this point in the history
Fix crs deprecation in geopandas
  • Loading branch information
ocefpaf committed Jun 14, 2024
2 parents 6757906 + 16bcc5c commit 2921126
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 2921126

Please sign in to comment.