woodwork.data_table.DataTable.set_semantic_tags

DataTable.set_semantic_tags(semantic_tags, retain_index_tags=True)[source]

Update the semantic tags for any column names in the provided semantic_tags dictionary. Replaces the existing semantic tags with the new values. Also replaces any updated columns with new DataColumn objects and returns a new DataTable object.

Parameters
  • semantic_tags (dict) – 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. Defaults to True.

Returns

DataTable with the specified semantic tags set

Return type

woodwork.DataTable