cumulative count python backwards

Viewed 889

I have a sample dataframe as below

ID       count
1          10
2          20
3          40

So for the cumulative count, I want to achieve

ID       count     cum Count
1          10         70
2          20         50 
3          40         40

Any idea how to do this with pandas?

1 Answers
Related