31. Summarising data by groups in Pandas using pivot_tables and groupby

Pandas offers two methods of summarising data – groupby and pivot_table*. The data produced can be the same but the format of the output may differ.

*pivot_table summarises data. There is a similar command, pivot, which we will use in the next section which is for reshaping data. Continue reading “31. Summarising data by groups in Pandas using pivot_tables and groupby”