How do I expand the time range of information in a dataframe as a new data frame.
- I have a data frame df with dates, strings and factors similar to this:
"start" "end" "note" "item"
2016-12-30 2017-01-03 Z 1
2017-09-10 2017-09-14 W 2
- I want to expand it as follows.
"start" "note" "item"
2016-12-30 Z 1
2016-12-31 Z 1
2017-01-01 Z 1
2017-01-02 Z 1
2017-01-03 Z 1
2017-09-10 W 2
2017-09-11 W 2
2017-09-12 W 2
2017-09-13 W 2
2017-09-14 W 2
How can I do it using python.