Skip to content

Commit

Permalink
DOC: Update pandas.DataFrame.tail docstring (pandas-dev#20225)
Browse files Browse the repository at this point in the history
  • Loading branch information
thismakessand authored and jorisvandenbossche committed Mar 11, 2018
1 parent c2864d7 commit fbebc7f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3664,7 +3664,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 @@ -3706,7 +3710,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

0 comments on commit fbebc7f

Please sign in to comment.