From 5fcc3896138cba51248f44ec632c98d3140e665b Mon Sep 17 00:00:00 2001 From: Borja Elizalde Date: Thu, 11 Jul 2024 16:37:58 +0200 Subject: [PATCH 1/2] modified the automatically generated docstring to include the return type specification --- ci/code_checks.sh | 4 ---- pandas/core/generic.py | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index b01866a6d6c82..d60dd1ddb109a 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -70,10 +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.max RT03" \ - -i "pandas.DataFrame.mean RT03" \ - -i "pandas.DataFrame.median RT03" \ - -i "pandas.DataFrame.min RT03" \ -i "pandas.DataFrame.plot PR02" \ -i "pandas.Grouper PR02" \ -i "pandas.MultiIndex.append PR07,SA01" \ diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 2a0495dff6681..fc9821a65777d 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -11777,6 +11777,8 @@ def last_valid_index(self) -> Hashable: Returns ------- {name1} or scalar\ + + Value containing the calculation referenced in the description.\ {see_also}\ {examples} """ From 379ba4757075fdf5e7b28b1d575a6a9057379e45 Mon Sep 17 00:00:00 2001 From: Borja Elizalde Date: Thu, 11 Jul 2024 19:14:36 +0200 Subject: [PATCH 2/2] removed Series.skew from the list as is no longer giving error --- ci/code_checks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index d60dd1ddb109a..c4d91da70adb5 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -162,7 +162,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.product RT03" \ -i "pandas.Series.reorder_levels RT03,SA01" \ -i "pandas.Series.sem PR01,RT03,SA01" \ - -i "pandas.Series.skew RT03,SA01" \ + -i "pandas.Series.skew SA01" \ -i "pandas.Series.sparse PR01,SA01" \ -i "pandas.Series.sparse.density SA01" \ -i "pandas.Series.sparse.fill_value SA01" \