Skip to content

Commit

Permalink
DOC: add SA01 for pandas.api.extensions.ExtensionArray.shape (#58705)
Browse files Browse the repository at this point in the history
* DOC: add SA01 for pandas.api.extensions.ExtensionArray.shape

* DOC: remove SA01 for pandas.api.extensions.ExtensionArray.shape
  • Loading branch information
tuhinsharma121 committed May 13, 2024
1 parent 41c9116 commit 3bbd048
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Expand Up @@ -334,7 +334,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.api.extensions.ExtensionArray.nbytes SA01" \
-i "pandas.api.extensions.ExtensionArray.ndim SA01" \
-i "pandas.api.extensions.ExtensionArray.ravel RT03,SA01" \
-i "pandas.api.extensions.ExtensionArray.shape SA01" \
-i "pandas.api.extensions.ExtensionArray.shift SA01" \
-i "pandas.api.extensions.ExtensionArray.take RT03" \
-i "pandas.api.extensions.ExtensionArray.tolist RT03,SA01" \
Expand Down
7 changes: 7 additions & 0 deletions pandas/core/arrays/base.py
Expand Up @@ -610,6 +610,13 @@ def shape(self) -> Shape:
"""
Return a tuple of the array dimensions.
See Also
--------
numpy.ndarray.shape : Similar attribute which returns the shape of an array.
DataFrame.shape : Return a tuple representing the dimensionality of the
DataFrame.
Series.shape : Return a tuple representing the dimensionality of the Series.
Examples
--------
>>> arr = pd.array([1, 2, 3])
Expand Down

0 comments on commit 3bbd048

Please sign in to comment.