Suppose we have the following dataset.

We can add a cumulative Jello consumption column using cumsum() .