Skip to content

Glossary: pandas Beyond the Basics

cumsum

Also written: cumulative sum, running total

`cumsum()` adds up as it goes, so each value is the total so far (a running total). It is the basis of year-to-date figures.

Where the book teaches it

Related terms

expandingYear-to-date