user image

Preeti Tripathi

Job Interview Skills
English
2 years ago

80. How can you acquire a data frame's initial five entries in the best way possible?

user image

Abhishek Mishra

2 years ago

The head(5) technique enables us to obtain the first five entries in a data frame. By default, df.head() returns the top 5 rows. The top n rows will be fetched using df.head(n).

Recent Doubts

Close [x]