Skip to content

DOC: fix SA05 errors in docstring for pandas.core.groupby.DataFrameGroupBy - first, last #57414

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 4 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 0 additions & 2 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1427,8 +1427,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then

MSG='Partially validate docstrings (SA05)' ; echo $MSG
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=SA05 --ignore_functions \
pandas.core.groupby.DataFrameGroupBy.first\
pandas.core.groupby.DataFrameGroupBy.last\
pandas.core.groupby.SeriesGroupBy.first\
pandas.core.groupby.SeriesGroupBy.last\
pandas.core.resample.Resampler.first\
Expand Down
8 changes: 4 additions & 4 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -3219,9 +3219,9 @@ def first(
--------
DataFrame.groupby : Apply a function groupby to each row or column of a
DataFrame.
pandas.core.groupby.DataFrameGroupBy.last : Compute the last non-null entry
core.groupby.DataFrameGroupBy.last : Compute the last non-null entry
of each column.
pandas.core.groupby.DataFrameGroupBy.nth : Take the nth row from each group.
core.groupby.DataFrameGroupBy.nth : Take the nth row from each group.

Examples
--------
Expand Down Expand Up @@ -3306,9 +3306,9 @@ def last(
--------
DataFrame.groupby : Apply a function groupby to each row or column of a
DataFrame.
pandas.core.groupby.DataFrameGroupBy.first : Compute the first non-null entry
core.groupby.DataFrameGroupBy.first : Compute the first non-null entry
of each column.
pandas.core.groupby.DataFrameGroupBy.nth : Take the nth row from each group.
core.groupby.DataFrameGroupBy.nth : Take the nth row from each group.

Examples
--------
Expand Down