Chain it: drop duplicates, then keep only rows with more than 100 cups, then re…

pandas · from Method chaining

chaining.assign().pipe().query().loc[lambda]inplace is a trap

Putting the kettle on…

Starting up…

Exercise 2

Chain it: drop duplicates, then keep only rows with more than 100 cups, then reset the index.

your answer
stuck? the lesson behind it
Method chaining
One expression, no half-modified frames, and the same answer every time you run it.