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'])
30.9k questions
32.9k answers
500 comments
665 users