How to cumsum a column value baed on event change in other column using python?

12 Views Asked by At

I have a problem in which I need cumsum of column max_count for every event change like below:

Input:

Input

Desired Output: Output

Any help is appreciated.

0

There are 0 best solutions below