Skip to content

Commit

Permalink
DOC: update the DataFrame.head() docstring (pandas-dev#20206)
Browse files Browse the repository at this point in the history
  • Loading branch information
aterrel authored and jorisvandenbossche committed Mar 10, 2018
1 parent dd7f567 commit c3d491a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3605,7 +3605,11 @@ def f(x):

def head(self, n=5):
"""
Return the first n rows.
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
has the right type of data in it.
Parameters
----------
Expand All @@ -3619,7 +3623,7 @@ def head(self, n=5):
See Also
--------
pandas.DataFrame.tail
pandas.DataFrame.tail: Returns the last `n` rows.
Examples
--------
Expand Down

0 comments on commit c3d491a

Please sign in to comment.