Skip to content

Commit e1e09eb

Browse files
Fix pandas.api.extensions.ExtensionArray.astype
Add 'See Also' section
1 parent 08636db commit e1e09eb

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
193193
-i "pandas.Timestamp.tzinfo GL08" \
194194
-i "pandas.Timestamp.value GL08" \
195195
-i "pandas.Timestamp.year GL08" \
196-
-i "pandas.api.extensions.ExtensionArray.astype SA01" \
197196
-i "pandas.api.extensions.ExtensionArray.dropna RT03,SA01" \
198197
-i "pandas.api.extensions.ExtensionArray.dtype SA01" \
199198
-i "pandas.api.extensions.ExtensionArray.duplicated RT03,SA01" \

pandas/core/arrays/base.py

+10
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,16 @@ def astype(self, dtype: AstypeArg, copy: bool = True) -> ArrayLike:
713713
An ``ExtensionArray`` if ``dtype`` is ``ExtensionDtype``,
714714
otherwise a Numpy ndarray with ``dtype`` for its dtype.
715715
716+
See Also
717+
--------
718+
Series.astype : Cast a Series to a different dtype.
719+
DataFrame.astype : Cast a DataFrame to a different dtype.
720+
api.extensions.ExtensionArray : Base class for ExtensionArray objects.
721+
core.arrays.DatetimeArray._from_sequence : Create a DatetimeArray from a
722+
sequence.
723+
core.arrays.TimedeltaArray._from_sequence : Create a TimedeltaArray from
724+
a sequence.
725+
716726
Examples
717727
--------
718728
>>> arr = pd.array([1, 2, 3])

0 commit comments

Comments
 (0)