0

I am trying to convert 'Thursday - 6/13/2019' to pd.to_datetime in a pandas dataframe column called 'timestamp".

Here is my attempt to solve the problem:

df['timestamp'] = pd.to_datetime(df['timestamp'], format='%A - %x')

Thanks.

1 Answers1

0

How about %m/%d/%Y instead of %x

pd.to_datetime(df['timestamp'], format='%A - %m/%d/%Y')
Lazyer
  • 917
  • 1
  • 6
  • 16