CBSE Class 12 Informatics Practices Question 67 of 167

Python Pandas — I — Question 32

Back to all questions
32
Question

Question 32

To extract row/column from a dataframe, ............ function may be used.

  1. row()
  2. column()
  3. loc()
  4. All of these
Answer

loc()

Reason — The loc() function is used to access row(s) and/or a combination of rows and columns from a DataFrame object.