Skip to content

Aggregate the columns in the LazyFrame to their minimum value

Description

Aggregate the columns in the LazyFrame to their minimum value

Usage

<LazyFrame>$min()

Value

A polars LazyFrame

Examples

library("polars")

lf <- pl$LazyFrame(a = 1:4, b = c(1, 2, 1, 1))
lf$min()$collect()
#> shape: (1, 2)
#> ┌─────┬─────┐
#> │ a   ┆ b   │
#> │ --- ┆ --- │
#> │ i32 ┆ f64 │
#> ╞═════╪═════╡
#> │ 1   ┆ 1.0 │
#> └─────┴─────┘