Return orders with cups renamed to cups_sold

pandas · from Renaming, sorting and dropping

.rename().sort_values().sort_index().drop()na_position.nlargest()

Putting the kettle on…

Starting up…

Exercise 1

Return orders with cups renamed to cups_sold.

your answer
stuck? the lesson behind it
Renaming, sorting and dropping
Housekeeping — and the two footguns hiding in it.