A table populated from a Python dictionary

Module Contents#





A table populated from a Python dictionary


class tlc.core.objects.tables.from_python_object.table_from_pydict.TableFromPydict(url: tlc.core.url.Url | None = None, created: str | None = None, description: 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.tables.in_memory_rows_table._InMemoryRowsTable

A table populated from a Python dictionary

The TableFromPydict will live in memory until persisted. When saved to Url it will write it’s rows to a row cache file so that it can be loaded back into memory at a later time.


python from tlc import TableFromPydict

data = {
    'col_1': [3, 2, 1, 0], 'col_2': ['a', 'b', 'c', 'd']
table = TableFromPydict(data=data)
  • url – The URL of the table.

  • created – The creation time of the table.

  • description – The description of the table.

  • row_cache_url – The URL of the row cache.

  • row_cache_populated – Whether the row cache is populated.

  • override_table_rows_schema – The schema to override the table rows schema.

  • init_parameters – The initial parameters of the table.