File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5182,7 +5182,7 @@ def head(self: NDFrameT, n: int = 5) -> NDFrameT:
5182
5182
has the right type of data in it.
5183
5183
5184
5184
For negative values of `n`, this function returns all rows except
5185
- the last `n ` rows, equivalent to ``df[:- n]``.
5185
+ the last `|n| ` rows, equivalent to ``df[:n]``.
5186
5186
5187
5187
If n is larger than the number of rows, this function returns all rows.
5188
5188
@@ -5257,7 +5257,7 @@ def tail(self: NDFrameT, n: int = 5) -> NDFrameT:
5257
5257
after sorting or appending rows.
5258
5258
5259
5259
For negative values of `n`, this function returns all rows except
5260
- the first `n ` rows, equivalent to ``df[n :]``.
5260
+ the first `|n| ` rows, equivalent to ``df[|n| :]``.
5261
5261
5262
5262
If n is larger than the number of rows, this function returns all rows.
5263
5263
You can’t perform that action at this time.
0 commit comments