3.18. cpforager.processing.add_gps_data

cpforager.processing.add_gps_data(df, params, clean=True)

Enhance the dataframe with the additional gps data.

Parameters:
  • df (pandas.DataFrame) – dataframe with datetime, longitude and latitude columns.

  • params (dict) – parameters dictionary.

  • clean (bool) – clean gps data if True.

Returns:

the dataframe enhanced with the additional gps data.

Return type:

pandas.DataFrame

Warning

If clean is True, size of the output dataframe may differ from the input dataframe.