diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 7c61157149513..99084f23818c9 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -87,7 +87,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then $BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX01 --ignore_functions \ pandas.Series.index \ pandas.Series.dtype \ - pandas.Series.shape \ pandas.Series.nbytes \ pandas.Series.ndim \ pandas.Series.size \ diff --git a/pandas/core/base.py b/pandas/core/base.py index b708ff44b39d0..8a1a2b8b99aa5 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -309,6 +309,12 @@ def transpose(self: _T, *args, **kwargs) -> _T: def shape(self) -> Shape: """ Return a tuple of the shape of the underlying data. + + Examples + -------- + >>> s = pd.Series([1, 2, 3]) + >>> s.shape + (3,) """ return self._values.shape