note: no really clean definition of CopyFrom -- no point of re-using existing table -- just clone it. Clone returns a complete copy of this table
()
| 329 | |
| 330 | // Clone returns a complete copy of this table |
| 331 | func (dt *Table) Clone() *Table { |
| 332 | cp := NewTable().SetNumRows(dt.Rows) |
| 333 | cp.CopyMetaDataFrom(dt) |
| 334 | for i, cl := range dt.Columns { |
| 335 | cp.AddColumn(cl.Clone(), dt.ColumnNames[i]) |
| 336 | } |
| 337 | return cp |
| 338 | } |
| 339 | |
| 340 | // AppendRows appends shared columns in both tables with input table rows |
| 341 | func (dt *Table) AppendRows(dt2 *Table) { |
no test coverage detected