geopandas create geodataframe from linestring code example
Example 1: geodataframe from lat lon points python
import geopandas as gpd
import random
latitudes=random.sample(range(0, 90), 10)
longitudes=random.sample(range(-180,180), 10)
points=gpd.GeoDataFrame(geometry=gpd.points_from_xy(longitudes,latitudes))
Example 2: concact geodataframe python
>>> s1 = pd.Series(['a', 'b'])
>>> s2 = pd.Series(['c', 'd'])
>>> pd.concat([s1, s2])
0 a
1 b
0 c
1 d
dtype: object