AggByColumnNameTry returns Agg results for given column name, optionally including :Name agg name appended, where Name is the name given to the Agg result (e.g., Mean for a standard Mean agg). Returns error message if not found.
(name string)
| 374 | // appended, where Name is the name given to the Agg result (e.g., Mean for a standard Mean agg). |
| 375 | // Returns error message if not found. |
| 376 | func (spl *Splits) AggByColumnNameTry(name string) (*SplitAgg, error) { |
| 377 | ag := spl.AggByColumnName(name) |
| 378 | if ag != nil { |
| 379 | return ag, nil |
| 380 | } |
| 381 | return nil, fmt.Errorf("table.Splits AggByColumnNameTry: agg results named: %v not found", name) |
| 382 | } |
| 383 | |
| 384 | // SetLevels sets the Levels index names -- must match actual index dimensionality |
| 385 | // of the Values. This is automatically done by e.g., GroupBy, but must be done |
nothing calls this directly
no test coverage detected