polars.DataFrame.min

DataFrame.min(axis: Literal[0] = 0) polars.internals.frame.DF
DataFrame.min(axis: Literal[1]) polars.internals.series.Series
DataFrame.min(axis: int = 0) Union[polars.internals.frame.DF, polars.internals.series.Series]

Aggregate the columns of this DataFrame to their minimum value.

Examples

>>> df = pl.DataFrame(
...     {
...         "foo": [1, 2, 3],
...         "bar": [6, 7, 8],
...         "ham": ["a", "b", "c"],
...     }
... )
>>> df.min()
shape: (1, 3)
┌─────┬─────┬──────┐
│ foo ┆ bar ┆ ham  │
│ --- ┆ --- ┆ ---  │
│ i64 ┆ i64 ┆ str  │
╞═════╪═════╪══════╡
│ 1   ┆ 6   ┆ null │
└─────┴─────┴──────┘