What does df.head() return when called without arguments?
-
A
The first five rows
Correct answer
-
B
The last five rows
-
C
Five randomly chosen rows
-
D
The five largest values
Correct answer
A. The first five rows
11 views
Explanation
head defaults to n=5 and returns rows from the start of the frame.
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