tlc.core.objects.tables.from_python_object.table_from_pydict#

A table populated from a Python dictionary

Module Contents#

Classes#

Class

Description

TableFromPydict

A table populated from a Python dictionary

API#

class tlc.core.objects.tables.from_python_object.table_from_pydict.TableFromPydict(url: tlc.core.url.Url | None = None, created: str | None = None, row_cache_url: tlc.core.url.Url | None = None, row_cache_populated: bool | None = None, override_table_rows_schema: Any = None, init_parameters: Any = None, data: Mapping[str, object] | None = None)#

Bases: tlc.core.objects.table.Table

A table populated from a Python dictionary

Example:

from tlc import TableFromPydict

data = {
    'col_1': [3, 2, 1, 0],
    'col_2': ['a', 'b', 'c', 'd']
}
table = TableFromPydict(data=data)