Time component encoding

    training_df, components = time_component_encoding(training_df)

This encodes the datetime columns in the dataframe to different numeric columns.

For example, suppose we have the following dataframe:

ds
2022/01/01
2022/03/12
2022/05/23
2022/07/04

After we perform time component encoding, the result will be:

dsYEAR_dsQUARTER_dsMONTH_dsWEEK_dsWEEKDAY_dsDAY_dsHOUR_ds
2022/01/0120221152610
2022/03/12202213106120
2022/05/23202225211230
2022/07/0420222727140