Skip to content

Commit e42c5eb

Browse files
committed
#51 replace Paris with Buenos Aires in example
1 parent 82d169c commit e42c5eb

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

workshop/jupyter/content/notebooks/04-vector-data.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@
824824
"cell_type": "markdown",
825825
"metadata": {},
826826
"source": [
827-
"Or assemble and plot all countries from the African continent."
827+
"Or assemble and plot all countries from the South American continent."
828828
]
829829
},
830830
{
@@ -833,7 +833,7 @@
833833
"metadata": {},
834834
"outputs": [],
835835
"source": [
836-
"africa = countries[countries['CONTINENT'] == 'Africa']"
836+
"south_america = countries[countries['CONTINENT'] == 'South America']"
837837
]
838838
},
839839
{
@@ -842,7 +842,7 @@
842842
"metadata": {},
843843
"outputs": [],
844844
"source": [
845-
"africa.plot()"
845+
"south_america.plot()"
846846
]
847847
},
848848
{
@@ -853,7 +853,7 @@
853853
"\n",
854854
"We can apply data filtering in GeoPandas based on spatial relationships.\n",
855855
"\n",
856-
"For example, if we call the `contains` method on the world dataset with the `paris` point, it will do this spatial check for each country in the `countries` dataframe:"
856+
"For example, if we call the `contains` method on the world dataset with the `Buenos Aires` point, it will do this spatial check for each country in the `countries` dataframe:"
857857
]
858858
},
859859
{
@@ -871,7 +871,7 @@
871871
"metadata": {},
872872
"outputs": [],
873873
"source": [
874-
"paris = cities.loc[cities['NAME'] == 'Paris', 'geometry'].squeeze()"
874+
"buenos_aires = cities.loc[cities['NAME'] == 'Buenos Aires', 'geometry'].squeeze()"
875875
]
876876
},
877877
{
@@ -880,14 +880,14 @@
880880
"metadata": {},
881881
"outputs": [],
882882
"source": [
883-
"countries.contains(paris)"
883+
"countries.contains(buenos_aires)"
884884
]
885885
},
886886
{
887887
"cell_type": "markdown",
888888
"metadata": {},
889889
"source": [
890-
"Because the above gives us a boolean result, we can use that to filter the dataframe:"
890+
"Because the above gives us a boolean result, we can use that result to filter the dataframe, to display its country:"
891891
]
892892
},
893893
{
@@ -896,7 +896,7 @@
896896
"metadata": {},
897897
"outputs": [],
898898
"source": [
899-
"countries[countries.contains(paris)]"
899+
"countries[countries.contains(buenos_aires)]"
900900
]
901901
},
902902
{

0 commit comments

Comments
 (0)