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

Method Columns

table.go:43–51  ·  view source on GitHub ↗

Columns returns the visible column names in datatable

()

Source from the content-addressed store, hash-verified

41
42// Columns returns the visible column names in datatable
43func (t *DataTable) Columns() []string {
44 var cols []string
45 for _, col := range t.cols {
46 if col.IsVisible() {
47 cols = append(cols, col.Name())
48 }
49 }
50 return cols
51}
52
53// HiddenColumns returns the hidden column names in datatable
54func (t *DataTable) HiddenColumns() []string {

Callers 3

NumColsMethod · 0.95
TestNewTableFunction · 0.80
checkTableFunction · 0.80

Calls 2

IsVisibleMethod · 0.65
NameMethod · 0.65

Tested by 2

TestNewTableFunction · 0.64
checkTableFunction · 0.64