tmb_pandas-calculate-statistics-for-each-group-using-groupby