Function polars_lazy::dsl::col

pub fn col(name: &str) -> Expr
Expand description

Create a Column Expression based on a column name.


  • name - A string slice that holds the name of the column. If a column with this name does not exist when the LazyFrame is collected, an error is returned.


// select a column name
// select all columns by using a wildcard
// select specific column by writing a regular expression that starts with `^` and ends with `$`
// only if regex features is activated