pd.to_datetime is getting half my dates with flipped day / months

Add format.

df['Date'] = pd.to_datetime(df['Date'], format="%d/%m/%Y") 

Leave a Comment