From 6d1fc97584b8dff62dddfe0edc2f38d05e69b072 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 24 Apr 2024 13:55:45 +0530 Subject: [PATCH 1/3] DOC: add SA01 to pandas.Index.item --- pandas/core/base.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandas/core/base.py b/pandas/core/base.py index 424f0609dd485..f06061bd36bfb 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -398,6 +398,11 @@ def item(self): ValueError If the data is not length = 1. + See Also + -------- + Index.values : Returns an array representing the data in the Index. + Series.head : Returns the first `n` rows. + Examples -------- >>> s = pd.Series([1]) From b40fd83561d04cfa43b7f92e9b71b1e16b95ed8d Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 24 Apr 2024 13:55:56 +0530 Subject: [PATCH 2/3] DOC: remove pandas.Index.item --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 066c7176fcc34..e37752944beaf 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -138,7 +138,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Index.inferred_type SA01" \ -i "pandas.Index.insert PR07,RT03,SA01" \ -i "pandas.Index.intersection PR07,RT03,SA01" \ - -i "pandas.Index.item SA01" \ -i "pandas.Index.join PR07,RT03,SA01" \ -i "pandas.Index.memory_usage RT03" \ -i "pandas.Index.names GL08" \ From 2a01ddfb31f7c6cc6cff7bcb0052208f1f5c3549 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 24 Apr 2024 14:37:35 +0530 Subject: [PATCH 3/3] DOC: remove pandas.Series.item --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index e37752944beaf..c66da5050d960 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -296,7 +296,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.is_monotonic_decreasing SA01" \ -i "pandas.Series.is_monotonic_increasing SA01" \ -i "pandas.Series.is_unique SA01" \ - -i "pandas.Series.item SA01" \ -i "pandas.Series.kurt RT03,SA01" \ -i "pandas.Series.kurtosis RT03,SA01" \ -i "pandas.Series.le PR07,SA01" \