Skip to content

Commit 9d16f4a

Browse files
committed
DOC: Adding example and See also to head and tail method (pandas-dev#16416)
1 parent 14cc5cf commit 9d16f4a

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 first 5 lines (the default)
3585+
Viewing the first 5 lines
35863586
>>> df.head()
35873587
animal
35883588
0 bear
@@ -3633,7 +3633,7 @@ def tail(self, n=5):
36333633
5 parrot
36343634
6 shark
36353635
3636-
Viewing the last 5 lines (the default)
3636+
Viewing the last 5 lines
36373637
>>> df.tail()
36383638
animal
36393639
2 falcon

0 commit comments

Comments
 (0)