polars.Series.arr.arg_min#
- Series.arr.arg_min() Series [source]#
Retrieve the index of the minimal value in every sub-array.
- Returns:
- Series
Series of data type
UInt32
orUInt64
(depending on compilation).
Examples
>>> s = pl.Series("a", [[3, 2, 1], [9, 1, 2]], dtype=pl.Array(pl.Int64, 3)) >>> s.arr.arg_min() shape: (2,) Series: 'a' [u32] [ 2 1 ]