Build a pivot table of total cups with city down the side and item across the t…
pandas · from pivot_table and crosstab
pivot_tableindex/columns/valuesaggfuncfill_valuemarginscrosstabPutting the kettle on…
Starting up…
Exercise 1
Build a pivot table of total cups with city down the side and item across the top.
your answer
stuck? the lesson behind it
pivot_table and crosstab
The same aggregation, with the second key across the top instead of down the side.