I am using pd.to_datetime to convert the date column, but it's not properly converting for the cells that have 10/1/2022, but all the other cells are correct. Yes, trust me. I know it's weird. The raw date format is date/month/year
Dataframe = df
Customer ID Date
ABC123 10/1/2022
ABC223 30/12/2021
ABC456 21/6/2022
ABC876 30/3/2022
df['Date'] = pd.to_datetime(df['Date'])
Results
Customer ID Date
ABC123 2022-10-01
ABC223 2021-12-30
ABC456 2022-06-21
ABC876 2022-03-30
If you see for the customer #ABC123, the date is incorrectly showing as 2022-10-01 when it's supposed to be 2022-01-10. But for all the other cells, it correctly shows yyyy-mm-dd except for customer #ABC123