Skip to content

Commit

Permalink
Fix pandas.api.extensions.ExtensionArray.dtype
Browse files Browse the repository at this point in the history
Add 'See Also' section
  • Loading branch information
ivonastojanovic committed Aug 24, 2024
1 parent 3ac2a29 commit 24fde37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Timestamp.tzinfo GL08" \
-i "pandas.Timestamp.value GL08" \
-i "pandas.Timestamp.year GL08" \
-i "pandas.api.extensions.ExtensionArray.dtype SA01" \
-i "pandas.api.extensions.ExtensionArray.duplicated RT03,SA01" \
-i "pandas.api.extensions.ExtensionArray.fillna SA01" \
-i "pandas.api.extensions.ExtensionArray.insert PR07,RT03,SA01" \
Expand Down
8 changes: 8 additions & 0 deletions pandas/core/arrays/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,14 @@ def dtype(self) -> ExtensionDtype:
"""
An instance of ExtensionDtype.
See Also
--------
api.extensions.ExtensionDtype : Base class for extension dtypes.
api.extensions.ExtensionArray : Base class for extension array types.
api.extensions.ExtensionArray.dtype : The dtype of an ExtensionArray.
Series.dtype : The dtype of a Series.
DataFrame.dtype : The dtype of a DataFrame.
Examples
--------
>>> pd.array([1, 2, 3]).dtype
Expand Down

0 comments on commit 24fde37

Please sign in to comment.