Skip to content

Commit 90e31b9

Browse files
thismakessandjorisvandenbossche
authored andcommitted
DOC: update pandas.DataFrame.head docstring (pandas-dev#20262)
1 parent fb556ed commit 90e31b9

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
@@ -3607,8 +3607,8 @@ def head(self, n=5):
36073607
"""
36083608
Return the first `n` rows.
36093609
3610-
This function returns the first `n` rows for the object based on the
3611-
underlying index. It is useful for quickly testing if your object
3610+
This function returns the first `n` rows for the object based
3611+
on position. It is useful for quickly testing if your object
36123612
has the right type of data in it.
36133613
36143614
Parameters
@@ -3619,7 +3619,7 @@ def head(self, n=5):
36193619
Returns
36203620
-------
36213621
obj_head : type of caller
3622-
The first n rows of the caller object.
3622+
The first `n` rows of the caller object.
36233623
36243624
See Also
36253625
--------
@@ -3651,7 +3651,7 @@ def head(self, n=5):
36513651
3 lion
36523652
4 monkey
36533653
3654-
Viewing the first n lines (three in this case)
3654+
Viewing the first `n` lines (three in this case)
36553655
36563656
>>> df.head(3)
36573657
animal

0 commit comments

Comments
 (0)