core.table.load_table

core.table.load_table(
    filename,
    sep=None,
    reader=None,
    digits=4,
    space=4,
    title='',
    missing_data='',
    max_width=int(1e+100),
    index_name=None,
    legend='',
    column_templates=None,
    static_column_types=False,
    limit=None,
    format_name='simple',
    skip_inconsistent=False,
    **kwargs,
)

return a Table instance from a file containing tabular data.

Parameters

Name Type Description Default
filename str | pathlib.Path path to file containing a tabular data required
sep str | None the delimiting character between columns None
reader typing.Callable | None a parser for reading filename. This approach assumes the first row returned by the reader will be the header row. None
static_column_types bool if True, and reader is None, identifies columns with a numeric/bool data types from the first non-header row. This assumes all subsequent entries in that column are of the same type. Default is False. False
digits int floating point resolution 4
space int number of spaces between columns or a string 4
title str as implied ''
missing_data str character assigned if a row has no entry for a column ''
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 ''
column_templates dict | None dict of column headings or a function that will handle the formatting. None
limit int | None exits after this many lines. Only applied for non pickled data file types. None
format_name str output format when using str(Table) 'simple'
skip_inconsistent bool skips rows that have different length to header row False