3.5. cpforager.processing.add_step_speed

cpforager.processing.add_step_speed(df)

Add to the dataframe an additional step_speed column that gives the step ground speed in kilometers per hour.

Parameters:

df (pandas.DataFrame) – dataframe with step_time and step_length columns.

Returns:

the dataframe with an additional step_speed column that gives the step ground speed in kilometers per hour.

Return type:

pandas.DataFrame

Step speed is computed as the average ground speed in kilometers per hour between consecutive measures of position.

Warning

First step speed value is NaN.