Group orders by city and return a frame with total (sum of cups) and best (max…
pandas · from agg, transform and apply
.agg().transform().filter().apply()named aggregationas_indexPutting the kettle on…
Starting up…
Exercise 1
Group orders by city and return a frame with total (sum of cups) and best (max of cups), using named aggregation.
your answer
stuck? the lesson behind it
agg, transform and apply
Told apart by one thing: the shape of what comes back.