Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3605,7 +3605,11 @@ def f(x):

def head(self, n=5):
"""
Return the first n rows.
Return the first `n` rows.

This function returns the first `n` rows for the object based on the
underlying index. It is useful for quickly testing if your object
has the right type of data in it.

Parameters
----------
Expand All @@ -3619,7 +3623,7 @@ def head(self, n=5):

See Also
--------
pandas.DataFrame.tail
pandas.DataFrame.tail: Returns the last `n` rows.

Examples
--------
Expand Down