Skip to content

Commit

Permalink
DOC: Adding example and See also to head and tail method (pandas-dev#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheukting committed Dec 15, 2017
1 parent 018aad7 commit 0a982ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3585,6 +3585,7 @@ def head(self, n=5):
8 zebra
Viewing the first 5 lines
>>> df.head()
animal
0 alligator
Expand All @@ -3594,6 +3595,7 @@ def head(self, n=5):
4 monkey
Viewing the first n lines (three in this case)
>>> df.head(3)
animal
0 alligator
Expand Down Expand Up @@ -3638,6 +3640,7 @@ def tail(self, n=5):
8 zebra
Viewing the last 5 lines
>>> df.tail()
animal
4 monkey
Expand All @@ -3647,6 +3650,7 @@ def tail(self, n=5):
8 zebra
Viewing the last n lines (three in this case)
>>> df.tail(3)
animal
6 shark
Expand Down

0 comments on commit 0a982ee

Please sign in to comment.