you may first verify the column names and data alignment:
print(df.columns.tolist()) print(df.head(2))
And also check if there any non-date values.