datascience.tables.Table.append¶
- Table.append(row_or_table)[source]¶
Append a row or all rows of a table in place. An appended table must have all columns of self.
The following example appends a row record to the table, followed by appending a table having all columns of self.
>>> table = Table().with_columns( ... "A", make_array(1), ... "B", make_array("foo"), ... "C", make_array('a')) >>> table A | B | C 1 | foo | a >>> table.append([2, "bar", 'b']) A | B | C 1 | foo | a 2 | bar | b >>> table A | B | C 1 | foo | a 2 | bar | b >>> table.append(Table().with_columns( ... "A", make_array(3, 4), ... "B", make_array("baz", "bat"), ... "C", make_array('c', 'd'))) A | B | C 1 | foo | a 2 | bar | b 3 | baz | c 4 | bat | d >>> table A | B | C 1 | foo | a 2 | bar | b 3 | baz | c 4 | bat | d