idxmax
Also written: .idxmax()
Gives the index label of the largest value in a Series, such as the name of the product that sold the most units.
Also written: .idxmax()
Gives the index label of the largest value in a Series, such as the name of the product that sold the most units.