code: def exclude(
      columns: (
          str
          | PolarsDataType
          | SelectorType
          | Expr
          | Collection[str | PolarsDataType | SelectorType | Expr]
      ),
      *more_columns: str | PolarsDataType | SelectorType | Expr,
  ) -> Expr:
      """
      Select all columns except those matching the given columns, datatypes, or selectors.
  
      .. versionchanged:: 0.20.3
          This function is now a simple redirect to the `cs.exclude()` selector.
  
      Parameters
      ----------
      columns
          One or more columns (col or name), datatypes, columns, or selectors representing
          the columns to exclude.
      *more_columns
          Additional columns, datatypes, or selectors to exclude, specified as positional
          arguments.
  
      Examples
      --------
      Exclude by column name(s):
  
      >>> df = pl.DataFrame(
      ...     {
      ...         "aa": [1, 2, 3],
      ...         "ba": ["a", "b", None],
      ...         "cc": [None, 2.5, 1.5],
      ...     }
      ... )
      >>> df.select(pl.exclude("ba", "xx"))
      shape: (3, 2)
      ┌─────┬──────┐
      │ aa  ┆ cc   │
      │ --- ┆ ---  │
      │ i64 ┆ f64  │
      ╞═════╪══════╡
      │ 1   ┆ null │
      │ 2   ┆ 2.5  │
      │ 3   ┆ 1.5  │
      └─────┴──────┘
  
      Exclude by regex, e.g. removing all columns whose names end with the letter "a":
  
      >>> df.select(pl.exclude("^.*a$"))
      shape: (3, 1)
      ┌──────┐
      │ cc   │
      │ ---  │
      │ f64  │
      ╞══════╡
      │ null │
      │ 2.5  │
      │ 1.5  │
      └──────┘
  
      Exclude by dtype(s), e.g. removing all columns of type Int64 or Float64:
  
      >>> df.select(pl.exclude(pl.Int64, pl.Float64))
      shape: (3, 1)
      ┌──────┐
      │ ba   │
      │ ---  │
      │ str  │
      ╞══════╡
      │ a    │
      │ b    │
      │ null │
      └──────┘
  
      Exclude column using a compound selector:
  
      >>> import polars.selectors as cs
      >>> df.select(pl.exclude(cs.first() | cs.last()))
      shape: (3, 1)
      ┌──────┐
      │ ba   │
      │ ---  │
      │ str  │
      ╞══════╡
      │ a    │
      │ b    │
      │ null │
      └──────┘
  
      """
      from polars.selectors import exclude
  
      return exclude(columns, *more_columns)
  
imports: from __future__ import annotations
  import contextlib
  from typing import TYPE_CHECKING, Any, Callable, Iterable, Sequence, overload
  import polars._reexport
  import polars.functions
  from polars.datatypes import DTYPE_TEMPORAL_UNITS, Date, Datetime, Int64
  from polars.utils._async import _AioDataFrameResult, _GeventDataFrameResult
  from polars.utils._parse_expr_input import parse_as_expression, parse_as_list_of_expressions
  from polars.utils._wrap import wrap_df, wrap_expr
  from polars.utils.deprecation import deprecate_renamed_function
label_desc: Use image node_id 26 for calling a global function with example usage: exclude(columns) and returns: exclude