Skip to content

Commit

Permalink
DOC: update pandas.DataFrame.head docstring (pandas-dev#20262)
Browse files Browse the repository at this point in the history
  • Loading branch information
thismakessand authored and jorisvandenbossche committed Mar 11, 2018
1 parent fb556ed commit 90e31b9
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 @@ -3607,8 +3607,8 @@ def head(self, n=5):
"""
Return the first `n` rows.
This function returns the first `n` rows for the object based on the
underlying index. It is useful for quickly testing if your object
This function returns the first `n` rows for the object based
on position. It is useful for quickly testing if your object
has the right type of data in it.
Parameters
Expand All @@ -3619,7 +3619,7 @@ def head(self, n=5):
Returns
-------
obj_head : type of caller
The first n rows of the caller object.
The first `n` rows of the caller object.
See Also
--------
Expand Down Expand Up @@ -3651,7 +3651,7 @@ def head(self, n=5):
3 lion
4 monkey
Viewing the first n lines (three in this case)
Viewing the first `n` lines (three in this case)
>>> df.head(3)
animal
Expand Down

0 comments on commit 90e31b9

Please sign in to comment.