August 2019
Beginner
482 pages
12h 56m
English
To aggregate values over some grouping, pandas has the groupby operation—one of the library's killer features. This function creates a GroupBy object, which can behave as an iterable of (name, group) tuples, or similar to a dataframe, you can select one or many columns the same way you'd do for a dataframe.
Most importantly, those objects have two special methods:
The great part of both of ...