Skip to content

Commit f2a41fa

Browse files
authored
Fix EX02 error:is_{integer,string}_dtype (#51610)
1 parent b69bd07 commit f2a41fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci/code_checks.sh

-2
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
564564
pandas.api.types.is_datetime64_any_dtype \
565565
pandas.api.types.is_datetime64_ns_dtype \
566566
pandas.api.types.is_datetime64tz_dtype \
567-
pandas.api.types.is_integer_dtype \
568-
pandas.api.types.is_string_dtype \
569567
pandas.plotting.andrews_curves \
570568
pandas.plotting.autocorrelation_plot \
571569
pandas.plotting.lag_plot \

pandas/core/dtypes/common.py

+2
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ def is_string_dtype(arr_or_dtype) -> bool:
523523
524524
Examples
525525
--------
526+
>>> from pandas.api.types import is_string_dtype
526527
>>> is_string_dtype(str)
527528
True
528529
>>> is_string_dtype(object)
@@ -674,6 +675,7 @@ def is_integer_dtype(arr_or_dtype) -> bool:
674675
675676
Examples
676677
--------
678+
>>> from pandas.api.types import is_integer_dtype
677679
>>> is_integer_dtype(str)
678680
False
679681
>>> is_integer_dtype(int)

0 commit comments

Comments
 (0)