I have an example of my dataset like this :
import pandas as pd
df = pd.DataFrame({'check_in':['2020-02-27','2020-02-28'],'check_out':['2020-02-29','2020-03-02'],'revenue':[100,66]})
df
check_in check_out revenue
0 2020-02-27 2020-02-29 100
1 2020-02-28 2020-03-02 66
and I want to turn it into something like this :
date revenue
0 2020-02-27 50
1 2020-02-28 72
2 2020-02-29 22
2 2020-03-01 22
The check_out date is not included in the range; so the first period is 2 days (27 and 28) with 50 revenue each.