MCPcopy Create free account
hub / github.com/cogentcore/core / AggByColumnNameTry

Method AggByColumnNameTry

tensor/table/splits.go:376–382  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
376func (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

Callers

nothing calls this directly

Calls 2

AggByColumnNameMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected