I have a weird format in my objectcolumn in python:
2020-08-13-09.41.16.474284
How can i convert that column to datetime? I tried:
pd.to_datetime(df['col', format='%Y-%m-%d-%H-%M.%f')
but that leads to an error: ValueError: time data '2020-08-13-10.59.43.324747' does not match format '%Y-%m-%d-%H-%M.%f' (match)
M-pd.to_datetime(df['col', format='%Y-%m-%D.%H.%M.%f')%fformat is not correct how can i fix that?