Geospatial Data: Instructors
Geospatial Data: Instructors
W O R K I N G W I T H G E O S PAT I A L D ATA I N P Y T H O N
Instructors
Joris Van den Bossche & Dani Arribas-
Bel
What is Geospatial Data?
Geospatial data are data with location information
type x y
0 Restaurant européen 259641.6 6251867.4
1 Restaurant traditionnel français 259572.3 6252030.2
2 Restaurant traditionnel français 259657.2 6252143.8
3 Restaurant indien, pakistanais et Moyen Orient 259684.4 6252203.6
4 Restaurant traditionnel français 259597.9 6252230.0
countries = geopandas.read_file("countries.geojson")
countries.head()
type(countries)
geopandas.geodataframe.GeoDataFrame
type(countries.geometry)
geopandas.geoseries.GeoSeries
0 63.593500
1 103.599439
2 3.185163
...
174 112.718524
175 62.789498
176 32.280371
Length: 177, dtype: float64
plot() method
countries['continent'] == 'Africa'
0 False
1 True
...
175 True
176 True
Name: continent, Length: 177, dtype: bool
countries_africa.plot()