user22234214
user22234214

Reputation: 1

ValueError: time data 'X' does not match format '%m/%d/%y %H:%M' (match)

and I encountered a problem when I was using pandas.to_datetime to convert a column to datetime, could you help me to figure out why? Thank you.

enter image description here

I tried to change the format but I don't know what is wrong.

Upvotes: 0

Views: 49

Answers (1)

Vetsin
Vetsin

Reputation: 2642

you have a row where the Order Date is literally X, you can ignore errors as in to_date(df[...], format=..., errors='ignore')

Upvotes: 1

Related Questions