We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 018aad7 commit 0a982eeCopy full SHA for 0a982ee
pandas/core/generic.py
@@ -3585,6 +3585,7 @@ def head(self, n=5):
3585
8 zebra
3586
3587
Viewing the first 5 lines
3588
+
3589
>>> df.head()
3590
animal
3591
0 alligator
@@ -3594,6 +3595,7 @@ def head(self, n=5):
3594
3595
4 monkey
3596
3597
Viewing the first n lines (three in this case)
3598
3599
>>> df.head(3)
3600
3601
@@ -3638,6 +3640,7 @@ def tail(self, n=5):
3638
3640
3639
3641
3642
Viewing the last 5 lines
3643
3644
>>> df.tail()
3645
3646
@@ -3647,6 +3650,7 @@ def tail(self, n=5):
3647
3650
3648
3651
3649
3652
Viewing the last n lines (three in this case)
3653
3654
>>> df.tail(3)
3655
3656
6 shark
0 commit comments