Convert DataFrame column type from string to datetime,df['col'] = pd.to_datetime(df['col'])