Method: Polars::ArrayNameSpace#arg_max

Defined in:
lib/polars/array_name_space.rb

#arg_maxSeries

Retrieve the index of the maximum value in every sub-array.

Examples:

s = Polars::Series.new("a", [[0, 9, 3], [9, 1, 2]], dtype: Polars::Array.new(Polars::Int64, 3))
s.arr.arg_max
# =>
# shape: (2,)
# Series: 'a' [u32]
# [
#         1
#         0
# ]

Returns:



486
487
488
# File 'lib/polars/array_name_space.rb', line 486

def arg_max
  super
end