Skip to content

Min

Source code

Description

Aggregate the columns in the LazyFrame to their minimum value.

Usage

<LazyFrame>$min()

Value

A LazyFrame with one row

Examples

library("polars")

as_polars_lf(mtcars)$min()$collect()
#> shape: (1, 11)
#> ┌──────┬─────┬──────┬──────┬───┬─────┬─────┬──────┬──────┐
#> │ mpg  ┆ cyl ┆ disp ┆ hp   ┆ … ┆ vs  ┆ am  ┆ gear ┆ carb │
#> │ ---  ┆ --- ┆ ---  ┆ ---  ┆   ┆ --- ┆ --- ┆ ---  ┆ ---  │
#> │ f64  ┆ f64 ┆ f64  ┆ f64  ┆   ┆ f64 ┆ f64 ┆ f64  ┆ f64  │
#> ╞══════╪═════╪══════╪══════╪═══╪═════╪═════╪══════╪══════╡
#> │ 10.4 ┆ 4.0 ┆ 71.1 ┆ 52.0 ┆ … ┆ 0.0 ┆ 0.0 ┆ 3.0  ┆ 1.0  │
#> └──────┴─────┴──────┴──────┴───┴─────┴─────┴──────┴──────┘