woodwork.table_schema.TableSchema.set_types

TableSchema.set_types(logical_types=None, semantic_tags=None, retain_index_tags=True)[source]

Update the logical type and semantic tags for any columns names in the provided types dictionaries, updating the TableSchema at those columns.

Parameters
  • logical_types (dict[str -> LogicalType], optional) – A dictionary defining the new logical types for the specified columns.

  • semantic_tags (dict[str -> str/list/set], optional) – A dictionary defining the new semantic_tags for the specified columns.

  • retain_index_tags (bool, optional) – If True, will retain any index or time_index semantic tags set on the column. If False, will replace all semantic tags any time a column’s semantic tags or logical type changes. Defaults to True.