woodwork.data_table.DataTable.reset_semantic_tags

DataTable.reset_semantic_tags(columns=None, retain_index_tags=False)[source]

Reset the semantic tags for the specified columns to the default values and return a new DataTable. The default values will be either an empty set or a set of the standard tags based on the column logical type, controlled by the use_standard_tags property on the table. Columns names can be provided as a single string, a list of strings or a set of strings. If columns is not specified, tags will be reset for all columns.

Parameters
  • columns (str/list/set) – The columns for which the semantic tags should be reset.

  • retain_index_tags (bool, optional) – If True, will retain any index or time_index semantic tags set on the column. If False, will clear all semantic tags. Defaults to False.

Returns

DataTable with semantic tags reset to default values

Return type

woodwork.DataTable