Feature Extraction

[Solved] Feature Extraction | Shell - Code Explorer | yomemimo.com
Question : time feature extraction

Answered by : sourov-sahoo

new_df=pd.DataFrame({'year':df['Date'].dt.year, 'month':df['Date'].dt.month, 'day':df['Date'].dt.day, 'dayofyear':df['Date'].dt.dayofyear, 'week':df['Date'].dt.week, 'dayofweek':df['Date'].dt.dayofweek, 'dayofweekname':df['Date'].dt.weekday_name, 'quater':df['Date'].dt.quarter})

Source : | Last Update : Tue, 18 Aug 20

Answers related to feature extraction

Code Explorer Popular Question For Shell