Skip to content

Commit 1493f57

Browse files
committed
Fix is_complex_dtype
1 parent a7139f4 commit 1493f57

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-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_complex_dtype SA01" \
127126
-i "pandas.api.types.is_datetime64_dtype SA01" \
128127
-i "pandas.api.types.is_datetime64_ns_dtype SA01" \
129128
-i "pandas.api.types.is_datetime64tz_dtype SA01" \

pandas/core/dtypes/common.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,6 +1442,14 @@ def is_complex_dtype(arr_or_dtype) -> bool:
14421442
boolean
14431443
Whether or not the array or dtype is of a complex dtype.
14441444
1445+
See Also
1446+
--------
1447+
api.types.is_complex: Return True if given object is complex.
1448+
api.types.is_numeric_dtype: Check whether the provided array or
1449+
dtype is of a numeric dtype.
1450+
api.types.is_integer_dtype: Check whether the provided array or
1451+
dtype is of an integer dtype.
1452+
14451453
Examples
14461454
--------
14471455
>>> from pandas.api.types import is_complex_dtype

0 commit comments

Comments
 (0)