From 54c73dac8d93e6b76601f0da155c32639808ed26 Mon Sep 17 00:00:00 2001 From: gvmmybear <46094200+gvmmybear@users.noreply.github.com> Date: Thu, 28 Nov 2024 11:00:32 -0600 Subject: [PATCH 1/3] fixing docstring for SeriesGroupBy.plot --- ci/code_checks.sh | 1 - pandas/plotting/_core.py | 5 ----- 2 files changed, 6 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 9faa2a249613b..7ae3690ea9eb2 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -95,7 +95,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.indices 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.indices SA01" \ diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index fbf9009cedc40..5f8b850c368ad 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -648,11 +648,6 @@ class PlotAccessor(PandasObject): Uses the backend specified by the option ``plotting.backend``. By default, matplotlib is used. - Parameters - ---------- - data : Series or DataFrame - The object for which the method is called. - Attributes ---------- x : label or position, default None From 56b3d0c059a03b5de0d310c8597394b474486838 Mon Sep 17 00:00:00 2001 From: gvmmybear <46094200+gvmmybear@users.noreply.github.com> Date: Thu, 28 Nov 2024 11:56:46 -0600 Subject: [PATCH 2/3] fixing docstring for SeriesGroupBy.indices --- ci/code_checks.sh | 1 - pandas/core/groupby/groupby.py | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 7ae3690ea9eb2..a4239333f771f 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -94,7 +94,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -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.indices SA01" \ -i "pandas.core.groupby.SeriesGroupBy.sem SA01" \ -i "pandas.core.resample.Resampler.get_group RT03,SA01" \ -i "pandas.core.resample.Resampler.indices SA01" \ diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index ad23127ad449f..27f90bfe12243 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -515,6 +515,15 @@ def indices(self) -> dict[Hashable, npt.NDArray[np.intp]]: """ Dict {group name -> group indices}. + See Also + -------- + core.groupby.DataFrameGroupBy.indices : Provides a mapping of group names + to positions of the elements in object. + core.resample.Resampler.indices : Provides a mapping of group names + to positions of the elements in object. + core.resample.Resampler.indices : Provides a mapping of group names + to positions of the elements in object. + Examples -------- From a8c1568c05a2b0571cdfd7ed923ce84f5b63f79e Mon Sep 17 00:00:00 2001 From: gvmmybear <46094200+gvmmybear@users.noreply.github.com> Date: Thu, 28 Nov 2024 12:16:27 -0600 Subject: [PATCH 3/3] fixing whitespace error on docstring for SeriesGroupBy.indices --- pandas/core/groupby/groupby.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 27f90bfe12243..eb52be7ab742d 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -517,12 +517,12 @@ def indices(self) -> dict[Hashable, npt.NDArray[np.intp]]: See Also -------- - core.groupby.DataFrameGroupBy.indices : Provides a mapping of group names - to positions of the elements in object. - core.resample.Resampler.indices : Provides a mapping of group names - to positions of the elements in object. - core.resample.Resampler.indices : Provides a mapping of group names - to positions of the elements in object. + core.groupby.DataFrameGroupBy.indices : Provides a mapping of group names to + positions of the elements in object. + core.resample.Resampler.indices : Provides a mapping of group names to + positions of the elements in object. + core.resample.Resampler.indices : Provides a mapping of group names to + positions of the elements in object. Examples --------