I have a pandas dataframe in python with two dates, stored as strings in the following format
Date 1 Date 2
2020-06-02 2021-09-17
2020-07-11 2022-03-22
2020-08-04 2021-06-17
What I am looking to do is return a data frame that has these two columns, as well as a third column that has the number of days between those two dates like such:
Date 1 Date 2 Days Inbetween
2020-06-02 2021-09-17 472
2020-07-11 2022-03-22 619
2020-08-04 2021-06-17 317
Is there a function or way to automatically do this calculation?
Thanks