Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 106 Bytes

pd_09_month.md

File metadata and controls

7 lines (5 loc) · 106 Bytes

To extract month from date:

from datetime import datetime
df['Month'] = df['datetime'].dt.month