You can mix and match columns and methods, and also avoid a multi-index, when grouping on #Python #Pandas data frames with "agg" and kwargs: - Each keyword is an output column name - Each value is a tuple of (COLNAME, METHOD) For example, agg(total_std=('total_amount', 'std'))
0 reposts1 like