datascience.tables.Table.with_row

Table.with_row(row)[source]

Return a table with an additional row.

Args:

row (sequence): A value for each column.

Raises:

ValueError: If the row length differs from the column count.

>>> tiles = Table(make_array('letter', 'count', 'points'))
>>> tiles.with_row(['c', 2, 3]).with_row(['d', 4, 2])
letter | count | points
c      | 2     | 3
d      | 4     | 2