diff --git a/ci/code_checks.sh b/ci/code_checks.sh index bf7423dfe5825..570ea1272758a 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -134,7 +134,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" \ @@ -288,7 +287,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" \ diff --git a/pandas/core/base.py b/pandas/core/base.py index d716a9ffb7bcc..ab27248308d74 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])