Using GeoPandas, how can I check the geometry type of a shapefile (i.e. Point, LineString, Polygon etc).
I can use the following to check the geometry type of each feature but this is unnecessary, I would just like to know if the shapefile is a LineString or not:
import geopandas as gpd
df = gpd.read_file('path/to/shapefile')
df.geom_type
0 LineString
1 LineString
2 LineString
3 LineString
4 LineString
...
423 LineString
424 LineString
425 LineString
Length: 426, dtype: object