woodwork.data_table.DataTable.select_ltypes

DataTable.select_ltypes(include)[source]

Create a DataTable that includes only columns whose logical types are specified here. Will not include any column, including indices, whose logical type is not specified.

Parameters

include (str or LogicalType or list[str or LogicalType]) – Logical types to include in the DataTable.

Returns

The subset of the original DataTable that contains just the ltypes in include.

Return type

DataTable