7.9. cpforager.check.check_gps
- cpforager.check.check_gps(df, verbose=True)
Check if the gps data is ok overall.
- Parameters:
df (pandas.DataFrame) – the dataframe with
longitude
,latitude
andtrip
columns.verbose (bool) – display warning if True.
- Returns:
True if if the gps data is ok overall.
- Return type:
bool
Practically, check if the dataframe
longitude
andlatitude
columns do not only contain NaN values, if there is at least one trip and if last trip is not interrupted.