I am trying to convert a string that includes a date to a datetime object.
How it looks: '01/01/2017 01:00:00 AM'
What I am currently using:
#df['date'] = pd.to_datetime(df['date'], format="%m/%d/%Y %I:%M:%S %p")
I get the following error message.
ValueError: time data ' ' does not match format '%m/%d/%Y %I:%M:%S %p' (match)
Thank you in advance for your help