Skip to content

DOC: Minor fix to docstring formatting for head() and tail() #58589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -5527,7 +5527,7 @@ def head(self, n: int = 5) -> Self:
it returns an empty object. When ``n`` is negative, it returns
all rows except the last ``|n|`` rows, mirroring the behavior of ``df[:n]``.

If n is larger than the number of rows, this function returns all rows.
If ``n`` is larger than the number of rows, this function returns all rows.

Parameters
----------
Expand Down Expand Up @@ -5615,7 +5615,7 @@ def tail(self, n: int = 5) -> Self:
For negative values of `n`, this function returns all rows except
the first `|n|` rows, equivalent to ``df[|n|:]``.

If n is larger than the number of rows, this function returns all rows.
If ``n`` is larger than the number of rows, this function returns all rows.

Parameters
----------
Expand Down
Loading