datascience.tables.Table.show

Table.show(max_rows=0)[source]

Display the table.

Args:

max_rows: Maximum number of rows to be output by the function

Returns:

A subset of the Table with number of rows specified in max_rows. First max_rows number of rows are displayed. If no value is passed for max_rows, then the entire Table is returned.

Examples:

>>> t = Table().with_columns(
...    "column1", make_array("data1", "data2", "data3"),
...    "column2", make_array(86, 51, 32),
...    "column3", make_array("b", "c", "a"),
...    "column4", make_array(5, 3, 6)
... )
>>> t
column1 | column2 | column3 | column4
data1   | 86      | b       | 5
data2   | 51      | c       | 3
data3   | 32      | a       | 6
>>> t.show()
<IPython.core.display.HTML object>
>>> t.show(max_rows=2)
<IPython.core.display.HTML object>