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

Function DescColumnTry

tensor/stats/split/agg.go:98–109  ·  view source on GitHub ↗

DescColumnTry performs aggregation using standard statistics across all splits, and stores results in the Splits. Column is specified by name -- returns error for bad column name.

(spl *table.Splits, column string)

Source from the content-addressed store, hash-verified

96// all splits, and stores results in the Splits.
97// Column is specified by name -- returns error for bad column name.
98func DescColumnTry(spl *table.Splits, column string) error {
99 dt := spl.Table()
100 if dt == nil {
101 return fmt.Errorf("split.DescTry: No splits to aggregate over")
102 }
103 colIndex, err := dt.ColumnIndexTry(column)
104 if err != nil {
105 return err
106 }
107 DescIndex(spl, colIndex)
108 return nil
109}

Callers

nothing calls this directly

Calls 4

TableMethod · 0.80
ColumnIndexTryMethod · 0.80
DescIndexFunction · 0.70
ErrorfMethod · 0.65

Tested by

no test coverage detected