We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5414a2d commit f7a9dacCopy full SHA for f7a9dac
pandas/core/generic.py
@@ -5284,6 +5284,8 @@ def head(self: NDFrameT, n: int = 5) -> NDFrameT:
5284
For negative values of `n`, this function returns all rows except
5285
the last `n` rows, equivalent to ``df[:-n]``.
5286
5287
+ If n is larger than the number of rows, this function returns all rows.
5288
+
5289
Parameters
5290
----------
5291
n : int, default 5
@@ -5357,6 +5359,8 @@ def tail(self: NDFrameT, n: int = 5) -> NDFrameT:
5357
5359
5358
5360
the first `n` rows, equivalent to ``df[n:]``.
5361
5362
5363
5364
5365
5366
0 commit comments