Skip to content

Commit ba03e9f

Browse files
set inplace crs
1 parent aea194f commit ba03e9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

06-2021-11-26/notebooks/06-03-Exploratory_Data_Analysis_WW2_Data_preparation.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@
760760
"metadata": {},
761761
"outputs": [],
762762
"source": [
763-
"gdf.set_crs('epsg:4326')"
763+
"gdf.set_crs('epsg:4326', inplace=True)"
764764
]
765765
},
766766
{
@@ -859,7 +859,7 @@
859859
"poly_europe = gpd.GeoSeries([Polygon([(-27,33), (45,33), (45,73.5), (-27,73.5)])])\n",
860860
"bb_europe = gpd.GeoDataFrame({'geometry': poly_europe})\n",
861861
"# assign crs\n",
862-
"bb_europe.set_crs('epsg:4326')\n",
862+
"bb_europe.set_crs('epsg:4326', inplace=True)\n",
863863
"bb_europe"
864864
]
865865
},
@@ -930,7 +930,7 @@
930930
"outputs": [],
931931
"source": [
932932
"europe = gpd.overlay(world, bb_europe, how='intersection')\n",
933-
"europe.set_crs('epsg:4326')"
933+
"europe.set_crs('epsg:4326', inplace=True)"
934934
]
935935
},
936936
{

0 commit comments

Comments
 (0)