save datetime day in seperate column

Solutions on MaxInterview for save datetime day in seperate column by the best coders in the world

showing results for - "save datetime day in seperate column"
Kimberley
21 Sep 2019
1df["day"] = df['datetime_utc'].map(lambda x: x.day)
2df["month"] = df['datetime_utc'].map(lambda x: x.month)
3df["year"] = df['datetime_utc'].map(lambda x: x.year)
4
similar questions
queries leading to this page
save datetime day in seperate column