I have this dataframe:
ClientID ArrivalDate DepartureDate TotalRevenue
191609 2019-01-15 00:00:00 2019-01-17 00:00:00 5720
213156 2019-01-15 00:00:00 2019-01-16 00:00:00 2130
And I would like to create a new column, 'ReferenceDate', with value equal to 'ArrivalDate'. Then, I want to add a new row with all same information but 'ReferenceDate' increased one day, and repeat this process until 'ReferenceDate' is equal to 'DepartureDate'. This should be done for each ClientID. Final result should look like this:
ClientID ArrivalDate DepartureDate TotalRevenue ReferenceDate
191609 2019-01-15 00:00:00 2019-01-17 00:00:00 5720 2019-01-15 00:00:00
191609 2019-01-15 00:00:00 2019-01-17 00:00:00 5720 2019-01-16 00:00:00
191609 2019-01-15 00:00:00 2019-01-17 00:00:00 5720 2019-01-17 00:00:00
213156 2019-01-15 00:00:00 2019-01-16 00:00:00 2130 2019-01-15 00:00:00
213156 2019-01-15 00:00:00 2019-01-16 00:00:00 2130 2019-01-16 00:00:00
Is it possible?