Saturday, June 4, 2016

Difference Between Groupby and Pivot_table for Pandas

Both pivot_table and groupby are used to aggregate your dataframe.

If you want to get SQL style of aggregation, groupby is the way to go.





Both pivot_table and groupby are used to aggregate your dataframe. The difference is only with regard to the shape of the result.

No comments:

Post a Comment