polars.Series.arg_min#

Series.arg_min() int | None[source]#

Get the index of the minimal value.

Returns:
int

Examples

>>> s = pl.Series("a", [3, 2, 1])
>>> s.arg_min()
2