I have a Pandas data frame, one of the column contains date strings in the format YYYY-MM-DD
YYYY-MM-DD
For e.g. \'2013-10-28\'
\'2013-10-28\'
At the moment th
Another way to do this and this works well if you have multiple columns to convert to datetime.
cols = ['date1','date2'] df[cols] = df[cols].apply(pd.to_datetime)