MCPcopy Create free account
hub / github.com/datasweet/datatable / Column

Method Column

table.go:66–73  ·  view source on GitHub ↗

Column gets the column with name returns nil if not found

(name string)

Source from the content-addressed store, hash-verified

64// Column gets the column with name
65// returns nil if not found
66func (t *DataTable) Column(name string) Column {
67 for _, col := range t.cols {
68 if col.Name() == name {
69 return col
70 }
71 }
72 return nil
73}
74
75// ColumnIndex gets the index of the column with name
76// returns -1 if not found

Callers 5

addColumnMethod · 0.95
RenameColumnMethod · 0.95
HideColumnMethod · 0.95
ShowColumnMethod · 0.95
AggregateMethod · 0.80

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected