I'm using jupyterlab version 3.1.9. I have a pandas dataframe df
. df contains start & end date. I would like to create a new data frame df1 from df so that it will have all the date between start & end date & all other columns remain same. My Sample df
data looks like
ProductId StartDate EndDate
1 2020-05-21 2020-05-22
2 2020-04-16 2020-04-18
3 2020-07-25 2020-07-26
4 2020-09-16 2020-09-20
My new data frame df1 will look like
ProductId Date
1 2020-05-21
1 2020-05-22
2 2020-04-16
2 2020-04-17
2 2020-04-18
3 2020-07-25
3 2020-07-26
4 2020-09-16
4 2020-09-17
4 2020-09-18
4 2020-09-19
4 2020-09-20
Can you suggest me how to do this in python?