Skip to content

Commit 5fff2cd

Browse files
authored
DOC: fix SA05 errors in docstring for pandas.core.groupby.DataFrameGroupBy - first, last (#57414)
* Fixing SA05 for first and last core.groupby.DataFrameGroupBy * remove function from code_checks
1 parent baa14de commit 5fff2cd

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

ci/code_checks.sh

-2
Original file line numberDiff line numberDiff line change
@@ -1543,8 +1543,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
15431543

15441544
MSG='Partially validate docstrings (SA05)' ; echo $MSG
15451545
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=SA05 --ignore_functions \
1546-
pandas.core.groupby.DataFrameGroupBy.first\
1547-
pandas.core.groupby.DataFrameGroupBy.last\
15481546
pandas.core.groupby.SeriesGroupBy.first\
15491547
pandas.core.groupby.SeriesGroupBy.last\
15501548
pandas.core.resample.Resampler.first\

pandas/core/groupby/groupby.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -3219,9 +3219,9 @@ def first(
32193219
--------
32203220
DataFrame.groupby : Apply a function groupby to each row or column of a
32213221
DataFrame.
3222-
pandas.core.groupby.DataFrameGroupBy.last : Compute the last non-null entry
3222+
core.groupby.DataFrameGroupBy.last : Compute the last non-null entry
32233223
of each column.
3224-
pandas.core.groupby.DataFrameGroupBy.nth : Take the nth row from each group.
3224+
core.groupby.DataFrameGroupBy.nth : Take the nth row from each group.
32253225
32263226
Examples
32273227
--------
@@ -3306,9 +3306,9 @@ def last(
33063306
--------
33073307
DataFrame.groupby : Apply a function groupby to each row or column of a
33083308
DataFrame.
3309-
pandas.core.groupby.DataFrameGroupBy.first : Compute the first non-null entry
3309+
core.groupby.DataFrameGroupBy.first : Compute the first non-null entry
33103310
of each column.
3311-
pandas.core.groupby.DataFrameGroupBy.nth : Take the nth row from each group.
3311+
core.groupby.DataFrameGroupBy.nth : Take the nth row from each group.
33123312
33133313
Examples
33143314
--------

0 commit comments

Comments
 (0)