Keep only the rows belonging to cities whose total cups is more than 400
pandas · from agg, transform and apply
.agg().transform().filter().apply()named aggregationas_indexPutting the kettle on…
Starting up…
Exercise 3
Keep only the rows belonging to cities whose total cups is more than 400.
your answer
stuck? the lesson behind it
agg, transform and apply
Told apart by one thing: the shape of what comes back.