Return a count of how many orders each city placed for each item, using pd.cros…
pandas · from pivot_table and crosstab
pivot_tableindex/columns/valuesaggfuncfill_valuemarginscrosstabPutting the kettle on…
Starting up…
Exercise 4
Return a count of how many orders each city placed for each item, using pd.crosstab.
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.