From fee33c40768bb7f3e952ba073b8713fbfa800b51 Mon Sep 17 00:00:00 2001 From: githubalexliu Date: Mon, 2 Dec 2024 23:03:24 -0500 Subject: [PATCH 1/4] Add see also for groupby.SeriesGroupBy.sem --- pandas/core/groupby/groupby.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 48d4e0456d4fa..1d32a30e6e014 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -2658,6 +2658,11 @@ def sem(self, ddof: int = 1, numeric_only: bool = False) -> NDFrameT: Series or DataFrame Standard error of the mean of values within each group. + See Also + -------- + Series.sem : Return unbiased standard error of the mean over requested axis. + DataFrame.sem : Return unbiased standard error of the mean over requested axis. + Examples -------- For SeriesGroupBy: From 756420316d18e92266f769b5b3ad9bb6f9fa54e8 Mon Sep 17 00:00:00 2001 From: githubalexliu Date: Mon, 2 Dec 2024 23:06:57 -0500 Subject: [PATCH 2/4] Removed method from code_checks --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index dde98a01cc770..0b79d41a7e7f7 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -93,7 +93,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.core.groupby.DataFrameGroupBy.sem SA01" \ -i "pandas.core.groupby.SeriesGroupBy.get_group RT03,SA01" \ -i "pandas.core.groupby.SeriesGroupBy.plot PR02" \ - -i "pandas.core.groupby.SeriesGroupBy.sem SA01" \ -i "pandas.core.resample.Resampler.get_group RT03,SA01" \ -i "pandas.core.resample.Resampler.max PR01,RT03,SA01" \ -i "pandas.core.resample.Resampler.mean SA01" \ From 8befc6af9022535cb291c0b96f3c24284e1a8db0 Mon Sep 17 00:00:00 2001 From: githubalexliu Date: Tue, 3 Dec 2024 10:19:37 -0500 Subject: [PATCH 3/4] Remove trailing whitespaces --- pandas/core/groupby/groupby.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 1d32a30e6e014..656da103f27e4 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -2661,7 +2661,7 @@ def sem(self, ddof: int = 1, numeric_only: bool = False) -> NDFrameT: See Also -------- Series.sem : Return unbiased standard error of the mean over requested axis. - DataFrame.sem : Return unbiased standard error of the mean over requested axis. + DataFrame.sem : Return unbiased standard error of the mean over requested axis. Examples -------- From 9d2d4cf212049cd652ade3641f7cfc15b2d3749e Mon Sep 17 00:00:00 2001 From: githubalexliu Date: Tue, 3 Dec 2024 10:51:42 -0500 Subject: [PATCH 4/4] Removed the other 2 sems 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 0b79d41a7e7f7..b3aae369db76e 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -90,7 +90,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.core.groupby.DataFrameGroupBy.get_group RT03,SA01" \ -i "pandas.core.groupby.DataFrameGroupBy.nunique SA01" \ -i "pandas.core.groupby.DataFrameGroupBy.plot PR02" \ - -i "pandas.core.groupby.DataFrameGroupBy.sem SA01" \ -i "pandas.core.groupby.SeriesGroupBy.get_group RT03,SA01" \ -i "pandas.core.groupby.SeriesGroupBy.plot PR02" \ -i "pandas.core.resample.Resampler.get_group RT03,SA01" \ @@ -99,7 +98,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.core.resample.Resampler.min PR01,RT03,SA01" \ -i "pandas.core.resample.Resampler.prod SA01" \ -i "pandas.core.resample.Resampler.quantile PR01,PR07" \ - -i "pandas.core.resample.Resampler.sem SA01" \ -i "pandas.core.resample.Resampler.std SA01" \ -i "pandas.core.resample.Resampler.transform PR01,RT03,SA01" \ -i "pandas.core.resample.Resampler.var SA01" \