Reputation: 1
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.
I tried to change the format but I don't know what is wrong.
Upvotes: 0
Views: 49
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