Skip to content

Commit 23a449c

Browse files
committed
DOC: Adding See Also and example to head and tail method (pandas-dev#16416)
1 parent 26911dd commit 23a449c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/generic.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3582,7 +3582,7 @@ def head(self, n=5):
35823582
5 parrot
35833583
6 shark
35843584
3585-
Viewing the last 5 lines (the default)
3585+
Viewing the first 5 lines (the default)
35863586
>>> df.head()
35873587
animal
35883588
0 bear
@@ -3591,7 +3591,7 @@ def head(self, n=5):
35913591
3 lion
35923592
4 monkey
35933593
3594-
Viewing the last n lines (three in this case)
3594+
Viewing the first n lines (three in this case)
35953595
>>> df.head(3)
35963596
animal
35973597
0 bear

0 commit comments

Comments
 (0)