Function polars::prelude::col[][src]

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

Create a Column Expression based on a column name.

Arguments

  • name - A string slice that holds the name of the column

Examples

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