0 votes
in Python by
How to access the first five entries of a dataframe?

1 Answer

0 votes
by

By using the head(5) function we can get the top five entries of a dataframe. By default df.head() returns the top 5 rows. To get the top n rows df.head(n) will be used.

Related questions

0 votes
asked Feb 11, 2021 in Python by SakshiSharma
+1 vote
asked Oct 28, 2022 in Python by SakshiSharma
...