minerva-ml / steppy-toolkit

Curated set of transformers that make your work with steppy faster and more effective :telescope:
MIT License
22 stars 9 forks source link

To date time components #45

Closed bcottman closed 2 years ago

bcottman commented 5 years ago

Pull Request template

transforms date time feature into components [Year', 'Month', 'Week', 'Day','Dayofweek' , 'Dayofyear','Elapsed','Is_month_end' , 'Is_month_start', 'Is_quarter_end' , 'Is_quarter_start', 'Is_year_end', 'Is_year_start']dt_features = ['Year', 'Month', 'Week', 'Day','Dayofweek' , 'Dayofyear','Elapsed','Is_month_end' , 'Is_month_start', 'Is_quarter_end' , 'Is_quarter_start', 'Is_year_end', 'Is_year_start']

see doctoring for more info

code# toolkit/preprocessing/toDatetimeComponents-- includes doctoring

test# tests/preprocessing/test_toDatetimeComponents-- unit tests

-bruce