AggColumn performs aggregation using given standard statistic (e.g., Mean) across all splits, and returns the SplitAgg container of the results, which are also stored in the Splits. Column is specified by name -- see Try for error msg version.
(spl *table.Splits, column string, stat stats.Stats)
| 27 | // all splits, and returns the SplitAgg container of the results, which are also |
| 28 | // stored in the Splits. Column is specified by name -- see Try for error msg version. |
| 29 | func AggColumn(spl *table.Splits, column string, stat stats.Stats) *table.SplitAgg { |
| 30 | dt := spl.Table() |
| 31 | if dt == nil { |
| 32 | return nil |
| 33 | } |
| 34 | return AggIndex(spl, dt.ColumnIndex(column), stat) |
| 35 | } |
| 36 | |
| 37 | // AggColumnTry performs aggregation using given standard statistic (e.g., Mean) across |
| 38 | // all splits, and returns the SplitAgg container of the results, which are also |