I have a dataframe like below.
| Id | d_of_arr | d_of_sty |
|---|---|---|
| 1 | 2021-12-03 | 2021-12-04 |
| 1 | 2021-12-03 | 2021-12-05 |
| 1 | 2021-12-03 | 2021-12-06 |
| 2 | 2021-12-09 | 2021-12-10 |
| 2 | 2021-12-09 | 2021-12-11 |
I want to add a column which shows the arrival date and all the dates of staying like below,
| Id | dates |
|---|---|
| 1 | 2021-12-03 |
| 1 | 2021-12-04 |
| 1 | 2021-12-05 |
| 1 | 2021-12-06 |
| 2 | 2021-12-09 |
| 2 | 2021-12-10 |
| 2 | 2021-12-11 |
How to do this using python/pandas?