I have the following Pandas DataFrame:
ID start_date end_date codes type
1 2019-01-01 2019-01-05 [x, y] A
2 2019-01-01 2019-01-05 [x, y, z] B
What I want to do is to generate the same number of rows as the range between two dates, for each code. The output will be this:
ID date codes type
1 2019-01-01 x A
1 2019-01-02 x A
1 2019-01-03 x A
1 2019-01-04 x A
1 2019-01-05 x A
1 2019-01-01 y A
1 2019-01-02 y A
1 2019-01-03 y A
1 2019-01-04 y A
1 2019-01-05 y A
2 2019-01-01 x B
2 2019-01-02 x B
.....
Thank you very much!