I have a pandas data frame that looks something like this:
hotel_id date length_of_stay clicks
A 2019-01-01 3 7
B 2019-01-06 2 11
C 2019-01-03 1 4
and I want the result to be:
hotel_id date clicks
A 2019-01-01 7
A 2019-01-02 7
A 2019-01-03 7
B 2019-01-06 11
B 2019-01-07 11
C 2019-01-03 4
So we see how many clicks we got for each night someone stayed at the hotel...
I cant think of an elegant way to do this.. can someone help?