From 1c1361359db985df11bf1bf45c5d8bd361c297a1 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Tue, 16 Jul 2024 20:00:18 +0530 Subject: [PATCH 1/2] DOC: add PR02 for pandas.DataFrame.plot --- ci/code_checks.sh | 1 - pandas/plotting/_core.py | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index a96af7dff7392..fe61662dac0d3 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -70,7 +70,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then --format=actions \ -i ES01 `# For now it is ok if docstrings are missing the extended summary` \ -i "pandas.Series.dt PR01" `# Accessors are implemented as classes, but we do not document the Parameters section` \ - -i "pandas.DataFrame.plot PR02" \ -i "pandas.Grouper PR02" \ -i "pandas.MultiIndex.append PR07,SA01" \ -i "pandas.MultiIndex.copy PR07,RT03,SA01" \ diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 61c44e58b643a..17df98f026656 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -652,6 +652,9 @@ class PlotAccessor(PandasObject): ---------- data : Series or DataFrame The object for which the method is called. + + Attributes + ---------- x : label or position, default None Only used if data is a DataFrame. y : label, position or list of label, positions, default None From a24779cb5479f63a82d44787aee9f888b3070d35 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Tue, 16 Jul 2024 20:36:59 +0530 Subject: [PATCH 2/2] DOC: fix PR02 for pandas.Series.plot --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index fe61662dac0d3..255e680d8dacb 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -155,7 +155,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.lt SA01" \ -i "pandas.Series.ne SA01" \ -i "pandas.Series.pad PR01,SA01" \ - -i "pandas.Series.plot PR02" \ -i "pandas.Series.pop SA01" \ -i "pandas.Series.prod RT03" \ -i "pandas.Series.product RT03" \