from sklearn.base import BaseEstimator, TransformerMixin |
Suppose we have a dataframe df with a column “timestamp”.
before apply the code, we have:
print(df['timestamp']) |
after we apply the code, we have:
print( df[['hour','dayofweek']]) |
from sklearn.base import BaseEstimator, TransformerMixin |
Suppose we have a dataframe df with a column “timestamp”.
before apply the code, we have:
print(df['timestamp']) |
after we apply the code, we have:
print( df[['hour','dayofweek']]) |