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 @@ -3660,7 +3660,11 @@ def head(self, n=5):

def tail(self, n=5):
"""
Return the last n rows.
Return the last `n` rows.

This function returns last `n` rows from the object based on
position. It is useful for quickly verifying data, for example,
after sorting or appending rows.

Parameters
----------
Expand Down Expand Up @@ -3702,7 +3706,7 @@ def tail(self, n=5):
7 whale
8 zebra

Viewing the last n lines (three in this case)
Viewing the last `n` lines (three in this case)

>>> df.tail(3)
animal
Expand Down