Selectors#

Contains method to select columns in a dataframe. See the selectors section for further details.

selectors.all

Select all columns.

selectors.any_date

Select columns that have a Date or Datetime data type.

selectors.boolean

Select columns that have an Boolean data type.

selectors.cardinality_below

Select columns whose cardinality (number of unique values) is (strictly) below threshold.

selectors.categorical

Select columns that have a Categorical (or polars Enum) data type.

selectors.cols

Select columns by name.

selectors.filter

Select columns for which predicate returns True.

selectors.filter_names

Select columns based on their name.

selectors.float

Select columns that have a floating-point data type.

selectors.glob

Select columns by name with Unix shell style 'glob' pattern.

selectors.has_nulls

Select columns that contain at least one null value.

selectors.integer

Select columns that have an integer data type.

selectors.inv

Invert a selector.

selectors.make_selector

Transform a selector, column name or list of column names into a selector.

selectors.numeric

Select columns that have a numeric data type.

selectors.regex

Select columns by name with a regular expression.

selectors.select

Apply a selector to a dataframe and return the resulting dataframe.

selectors.string

Select columns that have a String data type.