core.table.make_table

core.table.make_table(
    header=None,
    data=None,
    row_order=None,
    digits=4,
    space=4,
    title='',
    max_width=int(1e+100),
    index_name=None,
    legend='',
    missing_data='',
    column_templates=None,
    data_frame=None,
    format_name='simple',
    **kwargs,
)

make a Table instance

Parameters

Name Type Description Default
header list[str] | None column headings None
data dict | None a 2D dict, list or tuple. If a dict, it must have column headings as top level keys, and common row labels as keys in each column. None
row_order list | None the order in which rows will be pulled from the twoDdict None
digits int floating point resolution 4
space int number of spaces between columns or a string 4
title str as implied ''
max_width int maximum column width for printing int(1e+100)
index_name str | None column name with values to be used as row identifiers and keys for slicing. All column values must be unique. None
legend str table legend ''
missing_data str replace missing data with this ''
column_templates dict | None dict of column headings or a function that will handle the formatting. None
limit exits after this many lines. Only applied for non pickled data file types. required
data_frame typing.Optional[DataFrame] a pandas DataFrame, supersedes header/rows None
format_name str output format when using str(Table) 'simple'