Skip to content

Commit 3bbd048

Browse files
DOC: add SA01 for pandas.api.extensions.ExtensionArray.shape (#58705)
* DOC: add SA01 for pandas.api.extensions.ExtensionArray.shape * DOC: remove SA01 for pandas.api.extensions.ExtensionArray.shape
1 parent 41c9116 commit 3bbd048

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
334334
-i "pandas.api.extensions.ExtensionArray.nbytes SA01" \
335335
-i "pandas.api.extensions.ExtensionArray.ndim SA01" \
336336
-i "pandas.api.extensions.ExtensionArray.ravel RT03,SA01" \
337-
-i "pandas.api.extensions.ExtensionArray.shape SA01" \
338337
-i "pandas.api.extensions.ExtensionArray.shift SA01" \
339338
-i "pandas.api.extensions.ExtensionArray.take RT03" \
340339
-i "pandas.api.extensions.ExtensionArray.tolist RT03,SA01" \

pandas/core/arrays/base.py

+7
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,13 @@ def shape(self) -> Shape:
610610
"""
611611
Return a tuple of the array dimensions.
612612
613+
See Also
614+
--------
615+
numpy.ndarray.shape : Similar attribute which returns the shape of an array.
616+
DataFrame.shape : Return a tuple representing the dimensionality of the
617+
DataFrame.
618+
Series.shape : Return a tuple representing the dimensionality of the Series.
619+
613620
Examples
614621
--------
615622
>>> arr = pd.array([1, 2, 3])

0 commit comments

Comments
 (0)