By default, how many rows does DataFrame.head() return?
-
A
five
Correct answer
-
B
ten
-
C
one
-
D
all rows
13 views
Explanation
head() returns the first five rows unless a different number is passed as an argument.
Reference
Asked in: NTS, PPSC IT, Interviews
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ