check_time_column¶
yohou.utils.validation.check_time_column(df, df_name='DataFrame')
¶
Validate that time column exists, has proper dtype, no nulls, and is sorted.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
DataFrame to validate. |
required |
df_name
|
str
|
Name of DataFrame in error message. |
"DataFrame"
|
Raises¶
| Type | Description |
|---|---|
ValueError
|
If time column is missing, has wrong dtype, contains nulls, or is not sorted. |
See Also¶
check_interval_consistency: Validate uniform time spacing.check_continuity: Validate temporal continuity between DataFrames.check_inputs: Validate consistent intervals across y and X_actual.