movingpandas.TrajectoryCollection.add_timedelta#
- TrajectoryCollection.add_timedelta(overwrite=False, name='timedelta', n_threads=1)#
Add timedelta column and values to the trajectories.
Timedelta is calculated as the time difference between the current and the previous row. Values are instances of datetime.timedelta.
- Parameters:
overwrite (bool) – Whether to overwrite existing timedelta values (default: False)
name (str) – Name of the timedelta column (default: “timedelta”)
n_threads (int) – Number of threads to use for computation (default: 1)