Back
How can I convert a DataFrame column of strings (in dd/mm/yyyy format) to datetimes?
To convert DataFrame column type from string to datetime, dd/mm/yyyy format the easiest way is to use to_datetime:
df['col'] = pd.to_datetime(df['col'])
31k questions
32.8k answers
501 comments
693 users