8.7. cpforager.checks.check_trip_existence
- cpforager.checks.check_trip_existence(df, verbose=True)
Check if dataframe contains at least one trip.
- Parameters:
df (pandas.DataFrame) – the dataframe with a
trip
column.verbose (bool) – display warning if True.
- Returns:
True if dataframe has at least one trip.
- Return type:
bool