Maps, GIS, Geospatial, Dataviz, Python.
4326 gdf_shapes = gpd.GeoDataFrame(df_shapes[['shape_id', 'geometry']].groupby(by = 'shape_id').agg(list)) gdf_shapes = gdf_shapes[[len(g)>1 for g in gdf_shapes['geometry'].to_list()]] gdf_shapes['geometry'] = gdf_shapes['geometry'].apply(lambda x: LineString(x)) gdf_shapes =