I have a date column which after using pandas read_csv is represented as the object type. I'm trying to convert it to pandas datetime object but when using pd.to_datetime() it returns incorrect datetime object.
for example, I have dates in this format 01-06-68, where 01 is the day, 06 is the month and 68 is the year. Applying pandas to_datetime() to this string returns 2068-06-01 but should return 1968-06-01, where 06 is a month and 01 is the day.
I tried every possible solution using pandas to_datetime(), python's datetime, pendulum library but still getting an error. How can I solve this problem?