I have a dataframe with columns 'start_date' and 'end_date' for about 2,000 records. I want to create a new dataframe that counts all of the dates between the start and end date and creates a dataframe that sums these counts for each date as follows:
start and end dataframe
| ID | start_date | end_date |
|---|---|---|
| 1 | 01/01/2021 | 03/01/2021 |
| 2 | 02/01/2021 | 04/01/2021 |
| 3 | 01/01/2021 | 04/01/2021 |
date count dataframe
| date | count |
|---|---|
| 01/01/2021 | 2 |
| 02/01/2021 | 3 |
| 03/01/2021 | 3 |
| 04/01/2021 | 2 |