lcdata.schema.format_table

lcdata.schema.format_table(table, schema, verbose=False)

Format a table with a given schema.

Parameters
  • table (Table) – Table to format

  • schema (dict[dict]) – Schema to use for formatting

  • verbose (bool, optional) – Whether to print debugging messages, by default False

Returns

Formatted table

Return type

Table

Raises

ValueError – If there are required keys in the schema that are missing in the table.