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.

...