7.7. cpforager.check.check_trip_existence

cpforager.check.check_trip_existence(df, verbose=True)

Check if dataframe has 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