Which DataFrame method shows the first five rows by default in Python?
Correct answer
A. head()
5 views
A. head()
5 views
df.head(n) displays the first n rows.
Asked in: Python Interview Data Libraries
https://docs.python.org/3/library/index.htmlNot sure why the answer is A? Ask here and get an explanation.