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

Method Copy

copy.go:21–35  ·  view source on GitHub ↗

Copy the datatable

()

Source from the content-addressed store, hash-verified

19
20// Copy the datatable
21func (t *DataTable) Copy() *DataTable {
22 cpy := &DataTable{
23 name: t.name,
24 dirty: t.dirty,
25 hasExpr: t.hasExpr,
26 nrows: t.nrows,
27 cols: make([]*column, len(t.cols)),
28 }
29
30 for i, col := range t.cols {
31 cpy.cols[i] = col.copy()
32 }
33
34 return cpy
35}

Callers 1

SortMethod · 0.95

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected