DataTable.
set_logical_types
Update the logical type for any columns names in the provided logical_types dictionary. Replaces existing columns with new DataColumn objects and returns a new DataTable object.
logical_types (dict[str -> str/list/set]) – A dictionary defining the new logical types 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 clear all semantic tags. Defaults to True.
DataTable with updated logical types
woodwork.DataTable