Skip to content

Commit 8d5d286

Browse files
committed
Fix is_categorical_dtype
1 parent df6f8a3 commit 8d5d286

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
123123
-i "pandas.Timestamp.tzinfo GL08" \
124124
-i "pandas.Timestamp.year GL08" \
125125
-i "pandas.api.extensions.ExtensionArray.interpolate PR01,SA01" \
126-
-i "pandas.api.types.is_categorical_dtype SA01" \
127126
-i "pandas.api.types.is_complex PR01,SA01" \
128127
-i "pandas.api.types.is_complex_dtype SA01" \
129128
-i "pandas.api.types.is_datetime64_dtype SA01" \

pandas/core/dtypes/common.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,12 @@ def is_categorical_dtype(arr_or_dtype) -> bool:
514514
boolean
515515
Whether or not the array-like or dtype is of the Categorical dtype.
516516
517+
See Also
518+
--------
519+
api.types.is_list_like: Check if the object is list-like.
520+
api.types.is_complex_dtype: Check whether the provided array or
521+
dtype is of a complex dtype.
522+
517523
Examples
518524
--------
519525
>>> from pandas.api.types import is_categorical_dtype

0 commit comments

Comments
 (0)