SyntaxFix
Write A Post
Hire A Developer
Questions
I had a similar error -
time data '01-07-2020' does not match format '%d%m%Y' (match)
I didn't know that I have to use a hyphen in the format parameter. This worked for me -
df['Date'] = pd.to_datetime(df['Date'], format='%d-%m-%Y')