1new_df=pd.DataFrame({'year':df['Date'].dt.year,
2 'month':df['Date'].dt.month,
3 'day':df['Date'].dt.day,
4
5 'dayofyear':df['Date'].dt.dayofyear,
6 'week':df['Date'].dt.week,
7 'dayofweek':df['Date'].dt.dayofweek,
8 'dayofweekname':df['Date'].dt.weekday_name,
9 'quater':df['Date'].dt.quarter})