From 1236f87dbd11056bbf607cf2aa8caef7ff5708fb Mon Sep 17 00:00:00 2001 From: Pistonamey Date: Tue, 13 Feb 2024 19:24:40 -0600 Subject: [PATCH 1/2] Fixing SA05 for first and last core.groupby.DataFrameGroupBy --- pandas/core/groupby/groupby.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 1be1cdfcd0f50..103f7b55c0550 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -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 -------- @@ -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 -------- From ab4d57aec13f3c75ae39d3436686292e9c37fe83 Mon Sep 17 00:00:00 2001 From: Pistonamey Date: Tue, 13 Feb 2024 20:23:52 -0600 Subject: [PATCH 2/2] remove function from code_checks --- ci/code_checks.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 51257e6ef4258..9ab6fdf4a6d86 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -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\