CBSE Class 12 Informatics Practices Question 41 of 101

Python Pandas — II — Question 17

Back to all questions
17
Question

Question 17

The function to get the index of maximum value in a column of DataFrame is ............... .

  1. max()
  2. index()
  3. idxmax()
  4. maxidx()
Answer

idxmax()

Reason — The idxmax() function in pandas is used to get the index of the maximum value in a column of a DataFrame.