pyspark.pandas.Index.argmax

Index.argmax() → int[source]

Return a maximum argument indexer.

Parameters
skipnabool, default True
Returns
maximum argument indexer

Examples

>>> psidx = ps.Index([10, 9, 8, 7, 100, 5, 4, 3, 100, 3])
>>> psidx
Int64Index([10, 9, 8, 7, 100, 5, 4, 3, 100, 3], dtype='int64')
>>> psidx.argmax()
4