Skip to content

Commit 0d2dfe7

Browse files
committed
Fix See Also for nbytes
1 parent 6db67f4 commit 0d2dfe7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
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.nbytes SA01" \
228227
-i "pandas.api.extensions.ExtensionArray.ndim SA01" \
229228
-i "pandas.api.extensions.ExtensionArray.ravel RT03,SA01" \
230229
-i "pandas.api.extensions.ExtensionArray.take RT03" \

pandas/core/arrays/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,11 @@ def nbytes(self) -> int:
662662
"""
663663
The number of bytes needed to store this object in memory.
664664
665+
See Also
666+
--------
667+
ExtensionArray.size: The number of elements in the array.
668+
ExtensionArray.shape: Return a tuple of the array dimensions.
669+
665670
Examples
666671
--------
667672
>>> pd.array([1, 2, 3]).nbytes

0 commit comments

Comments
 (0)