I have a pandas dataframe with a column containing strings like follows
01-May-2012 16:44:55.113
01-Jun-2012 18:49:57.466
01-May-2012 14:64:45.119
01-May-2012 14:23:55.113
and I want to convert it to following format.
2012-05-01 16:44:55.113
2012-06-01 18:49:57.466
2012-05-01 14:64:45.119
2012-05-01 14:23:55.113
I tried using pandas.to_datetime(df['date time']) but I get the error unknown string value. I also tried splitting the string into two columns and convert only the date part but faced similar errors