DatetimeDayOfMonthSinCos#
- class DatetimeDayOfMonthSinCos(col, prefix='day_of_month', norm=True)[source]#
Periodically transform the day of month. Return 2 column {prefix}_{col}_sin/cos.
- __init__(col, prefix='day_of_month', norm=True)[source]#
- Parameters:
col (str) – column name
prefix (str, optional) – prefix of column. Defaults to “day_of_month”.
norm (bool, optional) – preiod length. If False, prefiod fixed with 31, else, preiod length is end of month. Defaults to True.
Methods
__init__(col[, prefix, norm])from_config(config)Create engine from config.
Attributes
engine_type