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

Method ColumnByName

tensor/table/table.go:68–74  ·  view source on GitHub ↗

ColumnByName returns the tensor at given column name without any error messages. Returns nil if not found

(name string)

Source from the content-addressed store, hash-verified

66// ColumnByName returns the tensor at given column name without any error messages.
67// Returns nil if not found
68func (dt *Table) ColumnByName(name string) tensor.Tensor {
69 i, ok := dt.ColumnNameMap[name]
70 if !ok {
71 return nil
72 }
73 return dt.Columns[i]
74}
75
76// ColumnByNameTry returns the tensor at given column name, with error message if not found.
77// Returns nil if not found

Callers 13

TestAdd3DColFunction · 0.95
FloatMethod · 0.95
StringValueMethod · 0.95
TensorMethod · 0.95
TensorFloat1DMethod · 0.95
SetFloatMethod · 0.95
SetStringMethod · 0.95
SetTensorFloat1DMethod · 0.95
CopyCellMethod · 0.95
genPlotXYMethod · 0.80
genPlotBarMethod · 0.80
AggsToTableMethod · 0.80

Implementers 1

_cogentcore_org_core_plot_plots_Tableyaegicore/symbols/cogentcore_org-core-

Calls

no outgoing calls

Tested by 1

TestAdd3DColFunction · 0.76