Skip to content

Commit

Permalink
DOC: Adding example to head and tail method (pandas-dev#16416)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheukting committed Dec 13, 2017
1 parent f6363ca commit 5a9e68e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3578,17 +3578,17 @@ def head(self, n=5):
5 bee
6 bear
Viewing the last 5 lines (the default)
>>> df.head()
Viewing the last 5 lines (the default)
>>> df.head()
animal
0 falcon
1 parrot
2 lion
3 monkey
4 shark
Viewing the last n lines (three in this case)
>>> df.head(3)
Viewing the last n lines (three in this case)
>>> df.head(3)
animal
0 falcon
1 parrot
Expand Down

0 comments on commit 5a9e68e

Please sign in to comment.