We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26911dd commit 23a449cCopy full SHA for 23a449c
pandas/core/generic.py
@@ -3582,7 +3582,7 @@ def head(self, n=5):
3582
5 parrot
3583
6 shark
3584
3585
- Viewing the last 5 lines (the default)
+ Viewing the first 5 lines (the default)
3586
>>> df.head()
3587
animal
3588
0 bear
@@ -3591,7 +3591,7 @@ def head(self, n=5):
3591
3 lion
3592
4 monkey
3593
3594
- Viewing the last n lines (three in this case)
+ Viewing the first n lines (three in this case)
3595
>>> df.head(3)
3596
3597
0 commit comments