Skip to content

Min

Source code

Description

Aggregate the columns in the DataFrame to their minimum value.

Usage

<DataFrame>$min()

Value

A DataFrame with one row.

Examples

library(polars)

pl$DataFrame(mtcars)$min()
#> 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  │
#> └──────┴─────┴──────┴──────┴───┴─────┴─────┴──────┴──────┘