I have a dataframe:
date1 date2
2021-11-02 2021-11-02
2021-11-02 2021-11-03
2021-11-02 2021-11-07
I want to add column "day" which is equal to difference between date2 and date1. I do df["day"] = df["date2"] - df["date1"]
But brings error TypeError: unsupported operand type(s) for -: 'str' and 'str'
How to fix it? How to turn them into timestamp?