Skip to content

Commit 5a9e68e

Browse files
committed
DOC: Adding example to head and tail method (#16416)
1 parent f6363ca commit 5a9e68e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/generic.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -3578,17 +3578,17 @@ def head(self, n=5):
35783578
5 bee
35793579
6 bear
35803580
3581-
Viewing the last 5 lines (the default)
3582-
>>> df.head()
3581+
Viewing the last 5 lines (the default)
3582+
>>> df.head()
35833583
animal
35843584
0 falcon
35853585
1 parrot
35863586
2 lion
35873587
3 monkey
35883588
4 shark
35893589
3590-
Viewing the last n lines (three in this case)
3591-
>>> df.head(3)
3590+
Viewing the last n lines (three in this case)
3591+
>>> df.head(3)
35923592
animal
35933593
0 falcon
35943594
1 parrot

0 commit comments

Comments
 (0)