polars.Expr.arr.min#

Expr.arr.min() Expr[source]#

Compute the min values of the sub-arrays.

Examples

>>> df = pl.DataFrame(
...     data={"a": [[1, 2], [4, 3]]},
...     schema={"a": pl.Array(pl.Int64, 2)},
... )
>>> df.select(pl.col("a").arr.min())
shape: (2, 1)
┌─────┐
│ a   │
│ --- │
│ i64 │
╞═════╡
│ 1   │
│ 3   │
└─────┘