woodwork.datacolumn.DataColumn.set_semantic_tags

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

Replace current semantic tags with new values and return a new DataColumn object.

Parameters
  • semantic_tags (str/list/set) – New semantic tag(s) to set for column

  • retain_index_tags (bool, optional) – If True, any ‘index’ or ‘time_index’ tags on the column will be retained. If False, all tags will be replaced. Defaults to True.

Returns

DataColumn with specified semantic tags.

Return type

woodwork.DataColumn