Skip to content

Get the minimum value

Description

Get the minimum value

Usage

<Expr>$min()

Value

A polars expression

Examples

library("polars")

pl$DataFrame(x = c(1, NaN, 3))$
  with_columns(min = pl$col("x")$min())
#> shape: (3, 2)
#> ┌─────┬─────┐
#> │ x   ┆ min │
#> │ --- ┆ --- │
#> │ f64 ┆ f64 │
#> ╞═════╪═════╡
#> │ 1.0 ┆ 1.0 │
#> │ NaN ┆ 1.0 │
#> │ 3.0 ┆ 1.0 │
#> └─────┴─────┘