Skip to content

Glossary: pandas Beyond the Basics

cumcount

Also written: .cumcount()

A groupby method that numbers the rows in each group 0, 1, 2… in their current order. Adding 1 gives each customer's first, second, third order.

Where the book teaches it

Related terms

transform