How many distinct items appear in orders

pandas · from Summarising a table

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

Putting the kettle on…

Starting up…

Exercise 3

How many distinct items appear in orders? Return the number.

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