Skip to content

Commit

Permalink
DOC: fix SA05 errors in docstring for pandas.core.groupby.DataFrameGr…
Browse files Browse the repository at this point in the history
…oupBy - first, last (#57414)

* Fixing SA05 for first and last core.groupby.DataFrameGroupBy

* remove function from code_checks
  • Loading branch information
Pistonamey authored Feb 14, 2024
1 parent baa14de commit 5fff2cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1543,8 +1543,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

0 comments on commit 5fff2cd

Please sign in to comment.