1. Home
  2. Data Science
  3. Pandas
  4. By default, how many rows does DataFrame.head() return?

Added 30 Nov -0001

By default, how many rows does DataFrame.head() return?

  1. five Correct answer
  2. ten
  3. one
  4. all rows

Correct answer

A. five

13 views

MCQSEXAM

Explanation

head() returns the first five rows unless a different number is passed as an argument.

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