woodwork.datatable.DataTable.select

DataTable.select(include)[source]

Create a DataTable including only columns whose logical type and semantic tags are specified in the list of types and tags to include. If no matching columns are found, an empty DataTable will be returned.

Parameters

include (str or LogicalType or list[str or LogicalType]) – Logical types, semantic tags or column names to include in the DataTable.

Returns

The subset of the original DataTable that contains just the logical types and semantic tags in include.

Return type

DataTable