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.
Glossary: pandas Beyond the Basics
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.