diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 9faa2a249613b..a4239333f771f 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -94,8 +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.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/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index ad23127ad449f..eb52be7ab742d 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 -------- 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