datascience.tables.Table.with_rows¶
-
Table.with_rows(rows)[source]¶ Return a table with additional rows.
- Args:
rows(sequence of sequences): Each row has a value per column.If
rowsis a 2-d array, its shape must be (_, n) for n columns.- Raises:
ValueError: If a row length differs from the column count.
>>> tiles = Table(['letter', 'count', 'points']) >>> tiles.with_rows([['c', 2, 3], ['d', 4, 2]]) letter | count | points c | 2 | 3 d | 4 | 2