Post

Call multiple methods in a #Python #Pandas groupby with agg. Pass a list of strings (method names), and get a data frame back, one column per method. df.groupby('passenger_count')['total_amount'].agg(['mean', 'std']) Here, both methods (mean and std) are computed per group.

0 reposts1 like

No replies yet.