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.
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.
How about %m/%d/%Y instead of %x
pd.to_datetime(df['timestamp'], format='%A - %m/%d/%Y')