We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2864d7 commit fbebc7fCopy full SHA for fbebc7f
pandas/core/generic.py
@@ -3664,7 +3664,11 @@ def head(self, n=5):
3664
3665
def tail(self, n=5):
3666
"""
3667
- Return the last n rows.
+ Return the last `n` rows.
3668
+
3669
+ This function returns last `n` rows from the object based on
3670
+ position. It is useful for quickly verifying data, for example,
3671
+ after sorting or appending rows.
3672
3673
Parameters
3674
----------
@@ -3706,7 +3710,7 @@ def tail(self, n=5):
3706
3710
7 whale
3707
3711
8 zebra
3708
3712
3709
- Viewing the last n lines (three in this case)
3713
+ Viewing the last `n` lines (three in this case)
3714
3715
>>> df.tail(3)
3716
animal
0 commit comments