polars.Expr.min#

Expr.min() → Expr[source]#

Get minimum value.

Null values are ignored, and so are NaN values of a float column. Values of a nested dtype (List, Array, Struct and Map) compare in the order sort() puts them in, where NaN is larger than any other number.

engine:In MemoryStreamingDistributed

Examples

>>> df = pl.DataFrame({"a": [-1.0, float("nan"), 1.0]})
>>> df.select(pl.col("a").min())
shape: (1, 1)
┌──────┐
│ a    │
│ ---  │
│ f64  │
╞══════╡
│ -1.0 │
└──────┘