Count the total of cases

by Jenny Jing Yu   Last Updated September 11, 2019 19:26 PM - source

I had a dataset as below by recording the number of cases per month:

Month          Cases       
2019-06-01       1
2019-05-01       0
2019-04-01       0
2019-03-01       2
2019-02-01       0

I would like to accumulated number per month as below:

Month          Cases       
2019-06-01       3
2019-05-01       2
2019-04-01       2
2019-03-01       2
2019-02-01       0


Related Questions




Reducing columns of csv file using dataframe python

Updated March 06, 2018 12:26 PM


Indention error not making sense - Python

Updated August 08, 2017 13:26 PM