I have been thinking in a more efficient way to summarize values in a dataframe between two values.
So, I have this dataframe:
Event Value
==============
Start -
Action 11
Action 6
Action 3
End -
Start -
Action 8
Action 6
End -
So what I want to do is sum all the values between Start and End and store the value in the initial Start
Event Value
==============
Start 20
Action 11
Action 6
Action 3
End -
Start 14
Action 8
Action 6
End -
Is there a way to do this without using loops?
Thanks for your help!