7.5. cpforager.check.check_datetime
- cpforager.check.check_datetime(df, verbose=True)
Check if the dataframe
datetime
column is ok overall.- Parameters:
df (pandas.DataFrame) – the dataframe with a
datetime
column.verbose (bool) – display warning if True.
- Returns:
True if datetime is ok overall.
- Return type:
bool
Practically, check if the dataframe
datetime
column type is datetime64, is sorted, does not have duplicates and cover a realistic range.