movingpandas.TrajectoryCollection.to_traj_gdf#
- TrajectoryCollection.to_traj_gdf(wkt=False, agg=False, return_orig_tz=False)#
Return a GeoDataFrame with one row per Trajectory within the TrajectoryCollection
- Parameters:
wkt (bool) – If True, adds WKT column representing the trajectory geometry
agg (dict) – Adds columns with aggregate values computed from trajectory dataframe columns according to specified aggregation mode, using pandas.DataFrame.agg(), and shortcuts for “mode” and quantiles (e.g. “q5” or “q95”)
return_orig_tz (bool) – If True, adds timezone info back to the start_t and end_t columns
- Return type:
GeoDataFrame