From 48ca01882be9fe8eb57cfefb6e364f58e9378446 Mon Sep 17 00:00:00 2001 From: Thi Phan Date: Mon, 22 Jan 2024 20:29:19 +0100 Subject: [PATCH 1/6] fix PR02 in resampling function --- ci/code_checks.sh | 1 - pandas/core/resample.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index e7509760bfde9..7f7e74639f003 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -201,7 +201,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.HDFStore.append\ pandas.core.window.rolling.Rolling.quantile\ pandas.core.window.expanding.Expanding.quantile\ - pandas.core.resample.Resampler.interpolate\ pandas.api.extensions.ExtensionArray.argsort # There should be no backslash in the final line, please keep this comment in the last ignored function RET=$(($RET + $?)) ; echo $MSG "DONE" diff --git a/pandas/core/resample.py b/pandas/core/resample.py index 2bc1d3f7227cf..082196abc17c2 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -1028,7 +1028,7 @@ def interpolate( .. deprecated:: 2.1.0 - ``**kwargs`` : optional + **kwargs : optional Keyword arguments to pass on to the interpolating function. Returns From db33c72bc5031310acfd01fbc73328d78bb85790 Mon Sep 17 00:00:00 2001 From: Thi Phan Date: Mon, 22 Jan 2024 20:33:06 +0100 Subject: [PATCH 2/6] fix PR02 in interpolate function --- ci/code_checks.sh | 1 - pandas/core/generic.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 7f7e74639f003..b3bb6871cf545 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -126,7 +126,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Series.plot.line\ pandas.Series.plot.pie\ pandas.DataFrame.clip\ - pandas.DataFrame.interpolate\ pandas.DataFrame.plot\ pandas.DataFrame.plot.bar\ pandas.DataFrame.plot.barh\ diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 2fe1f4a3bcf7c..0ebdcf1947f7f 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8296,7 +8296,7 @@ def interpolate( .. deprecated:: 2.1.0 - ``**kwargs`` : optional + **kwargs : optional Keyword arguments to pass on to the interpolating function. Returns From 81254f80f18a4db2b6bde07e541f1f761f01b017 Mon Sep 17 00:00:00 2001 From: Thi Phan Date: Mon, 22 Jan 2024 20:36:35 +0100 Subject: [PATCH 3/6] fix PR02 in string function --- pandas/core/strings/accessor.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 6c271ef1021f4..f0ad5b662de84 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -2351,8 +2351,6 @@ def count(self, pat, flags: int = 0): flags : int, default 0, meaning no flags Flags for the `re` module. For a complete list, `see here `_. - **kwargs - For compatibility with other string methods. Not used. Returns ------- From d515034996f46e1bbc3ee2ded323c86b24e955b4 Mon Sep 17 00:00:00 2001 From: Thi Phan Date: Mon, 22 Jan 2024 20:37:16 +0100 Subject: [PATCH 4/6] fix PR02 in string function --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index b3bb6871cf545..cf6a8b5f4383a 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -113,7 +113,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Series.dt.ceil\ pandas.Series.dt.month_name\ pandas.Series.dt.day_name\ - pandas.Series.str.count\ pandas.Series.str.wrap\ pandas.Series.cat.rename_categories\ pandas.Series.cat.reorder_categories\ From 0c3cf0f347dab86ebd524da589aa3eea21d5322d Mon Sep 17 00:00:00 2001 From: Thi Phan Date: Mon, 22 Jan 2024 20:41:57 +0100 Subject: [PATCH 5/6] fix PR02 in groupby function --- ci/code_checks.sh | 1 - pandas/core/groupby/groupby.py | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index cf6a8b5f4383a..ee989604534f5 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -183,7 +183,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Interval\ pandas.Grouper\ pandas.core.groupby.SeriesGroupBy.apply\ - pandas.core.groupby.DataFrameGroupBy.apply\ pandas.core.groupby.SeriesGroupBy.transform\ pandas.core.groupby.DataFrameGroupBy.transform\ pandas.core.groupby.DataFrameGroupBy.nth\ diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index d86062e35a20c..78671a0215cc7 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -192,6 +192,10 @@ class providing the base-class of operations. A callable that takes a {input} as its first argument, and returns a dataframe, a series or a scalar. In addition the callable may take positional and keyword arguments. + + *args : tuple + Optional positional arguments to pass to ``func``. + include_groups : bool, default True When True, will attempt to apply ``func`` to the groupings in the case that they are columns of the DataFrame. If this raises a @@ -205,8 +209,8 @@ class providing the base-class of operations. Setting include_groups to True is deprecated. Only the value False will be allowed in a future version of pandas. - args, kwargs : tuple and dict - Optional positional and keyword arguments to pass to ``func``. + **kwargs : dict + Optional keyword arguments to pass to ``func``. Returns ------- From 70b793c05b63cfa78a75e36a03cd649a5603f4df Mon Sep 17 00:00:00 2001 From: Thi Phan Date: Mon, 22 Jan 2024 20:47:52 +0100 Subject: [PATCH 6/6] fix lint error --- pandas/core/groupby/groupby.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 78671a0215cc7..b2afaffc267fa 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -192,10 +192,10 @@ class providing the base-class of operations. A callable that takes a {input} as its first argument, and returns a dataframe, a series or a scalar. In addition the callable may take positional and keyword arguments. - + *args : tuple Optional positional arguments to pass to ``func``. - + include_groups : bool, default True When True, will attempt to apply ``func`` to the groupings in the case that they are columns of the DataFrame. If this raises a