I have dataframe like this where index contains the start_period/end_period.
And i want to create range from dataframe index and output like this:
| range_date | due_date |
| ------------------ | --------------------|
| 2021-07-30 00:00:00 | 2021-07-30 00:00:00 |
| 2021-08-01 00:00:00 | 2021-07-30 00:00:00 |
| 2021-08-02 00:00:00 | 2021-07-30 00:00:00 |
| 2021-08-29 00:00:00 | 2021-08-30 00:00:00 |
| 2021-08-30 00:00:00 | 2021-08-30 00:00:00 |
| 2021-09-01 00:00:00 | 2021-08-30 00:00:00 |
| 2021-09-28 00:00:00 | 2021-09-30 00:00:00 |
| 2021-09-29 00:00:00 | 2021-09-30 00:00:00 |
| 2021-09-30 00:00:00 | 2021-09-30 00:00:00 |
Clarification: If you check the first row where the index contains the range start_period/ end_period, so i want to convert that range into per day row and its value would be the column value:
range_date due_date
2021-07-30 2021-07-30
2021-08-01 2021-07-30
2021-08-02 2021-07-30
same goes for other rows
