7.4. cpforager.check.check_datetime_range

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

Check if the dataframe datetime column cover a realistic range, i.e. bigger than 12 hours and smaller than 30 days.

Parameters:
  • df (pandas.DataFrame) – the dataframe with a datetime column.

  • verbose (bool) – display warning if True.

Returns:

True if the dataframe datetime column cover a realistic range.

Return type:

bool