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

Method Row

table.go:154–164  ·  view source on GitHub ↗

Row gets the row at index

(at int, opt ...ExportOption)

Source from the content-addressed store, hash-verified

152
153// Row gets the row at index
154func (t *DataTable) Row(at int, opt ...ExportOption) Row {
155 opts := newExportOptions(opt...)
156 t.evaluateExpressions()
157 r := make(Row, len(t.cols))
158 for _, col := range t.cols {
159 if opts.WithHiddenCols || col.IsVisible() {
160 r[col.name] = col.serie.Get(at)
161 }
162 }
163 return r
164}

Callers 3

GroupByMethod · 0.95
TestRowFunction · 0.45
joinMethod · 0.45

Calls 4

evaluateExpressionsMethod · 0.95
newExportOptionsFunction · 0.85
IsVisibleMethod · 0.65
GetMethod · 0.65

Tested by 1

TestRowFunction · 0.36