3.3. cpforager.processing.add_step_time
- cpforager.processing.add_step_time(df)
Add to the dataframe an additional
step_time
column that gives the step time in seconds.- Parameters:
df (pandas.DataFrame) – dataframe with a
datetime
column.- Returns:
the dataframe with an additional
step_time
column that gives the step time in seconds.- Return type:
pandas.DataFrame
Step time is computed as the duration in seconds between consecutive measures of position.
Warning
First step time value is NaN.