Skip to content

Commit 5806f90

Browse files
committed
fix See also for ndim
1 parent 0d2dfe7 commit 5806f90

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
224224
-i "pandas.api.extensions.ExtensionArray.insert PR07,RT03,SA01" \
225225
-i "pandas.api.extensions.ExtensionArray.interpolate PR01,SA01" \
226226
-i "pandas.api.extensions.ExtensionArray.isin PR07,RT03,SA01" \
227-
-i "pandas.api.extensions.ExtensionArray.ndim SA01" \
228227
-i "pandas.api.extensions.ExtensionArray.ravel RT03,SA01" \
229228
-i "pandas.api.extensions.ExtensionArray.take RT03" \
230229
-i "pandas.api.extensions.ExtensionArray.tolist RT03,SA01" \

pandas/core/arrays/base.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,11 @@ def ndim(self) -> int:
649649
"""
650650
Extension Arrays are only allowed to be 1-dimensional.
651651
652+
See Also
653+
--------
654+
ExtensionArray.shape: Return a tuple of the array dimensions.
655+
ExtensionArray.size: The number of elements in the array.
656+
652657
Examples
653658
--------
654659
>>> arr = pd.array([1, 2, 3])
@@ -664,8 +669,8 @@ def nbytes(self) -> int:
664669
665670
See Also
666671
--------
667-
ExtensionArray.size: The number of elements in the array.
668672
ExtensionArray.shape: Return a tuple of the array dimensions.
673+
ExtensionArray.size: The number of elements in the array.
669674
670675
Examples
671676
--------

0 commit comments

Comments
 (0)