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.

  • 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.


DataTable with the specified semantic tags set

Return type