Return the total cups and the mean revenue in one call, using .agg() with a dict

pandas · from Summarising a table

.describe().value_counts().nunique().agg().count()numeric_only

Putting the kettle on…

Starting up…

Exercise 4

Return the total cups and the mean revenue in one call, using .agg() with a dict.

your answer
stuck? the lesson behind it
Summarising a table
describe() is a checklist, not a report — run it on everything.