I would like to get a dataframe of the count of the total amount of items sold by day, but at the "end" of the day.
For example, I have the following data:
Item Day Facility
Item_A Day1 B
Item_B Day1 A
Item_B Day1 B
Item_C Day2 B
Item_A Day2 A
Item_C Day2 C
Item_B Day2 A
Item_B Day2 A
Item_C Day3 A
I would like a table which shows the total sold items at the end of the day + the previous days. I've included a dummy column because my data has additional columns which I don't need.
For example:
Item Day Facility Item_Total_Accumulative
Item_A Day1 B 1
Item_B Day1 A 2
Item_B Day1 B 2
Item_C Day2 B 2
Item_A Day2 A 2
Item_C Day2 C 2
Item_B Day2 A 4
Item_B Day2 A 4
Item_C Day3 A 3