Prepare seasonal feature diagnostics akin to tk_seasonal_diagnostics.
Parameters
Name
Type
Description
Default
data
pd.DataFrame or pd.core.groupby.generic.DataFrameGroupBy
Time series data (long format) or grouped data.
required
date_column
str
Name of the datetime column.
required
value_column
str
Numeric measure to analyse.
required
feature_set
str or sequence
One or more of ["second", "minute", "hour", "wday.lbl", "week", "month.lbl", "quarter", "year"]. The special value "auto" selects features based on the timestamp scale and overall history.
'auto'
Returns
Name
Type
Description
pd.DataFrame
Tidy data with: - grouping columns (when present) - date (or the supplied date_column) - the original value_column - seasonal_feature (e.g. "hour") - seasonal_value (the actual categorical value for that observation)