We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd7f567 commit c3d491aCopy full SHA for c3d491a
pandas/core/generic.py
@@ -3605,7 +3605,11 @@ def f(x):
3605
3606
def head(self, n=5):
3607
"""
3608
- Return the first n rows.
+ Return the first `n` rows.
3609
+
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
3612
+ has the right type of data in it.
3613
3614
Parameters
3615
----------
@@ -3619,7 +3623,7 @@ def head(self, n=5):
3619
3623
3620
3624
See Also
3621
3625
--------
3622
- pandas.DataFrame.tail
3626
+ pandas.DataFrame.tail: Returns the last `n` rows.
3627
3628
Examples
3629
0 commit comments