1. Home
  2. Data Science
  3. Pandas
  4. What does df.head() return when called without arguments?

Added 30 Nov -0001

What does df.head() return when called without arguments?

  1. The first five rows Correct answer
  2. The last five rows
  3. Five randomly chosen rows
  4. The five largest values

Correct answer

A. The first five rows

11 views

MCQSEXAM

Explanation

head defaults to n=5 and returns rows from the start of the frame.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Pandas MCQs

Practise all Pandas MCQs

Similar MCQs