Sort by city ascending, and within each city by cups descending
pandas · from Renaming, sorting and dropping
.rename().sort_values().sort_index().drop()na_position.nlargest()Putting the kettle on…
Starting up…
Exercise 3
Sort by city ascending, and within each city by cups descending.
your answer
stuck? the lesson behind it
Renaming, sorting and dropping
Housekeeping — and the two footguns hiding in it.