diff --git a/ci/code_checks.sh b/ci/code_checks.sh index c2ec22020bca2..47e3ce0ae6ff7 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -564,8 +564,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.types.is_datetime64_any_dtype \ pandas.api.types.is_datetime64_ns_dtype \ pandas.api.types.is_datetime64tz_dtype \ - pandas.api.types.is_integer_dtype \ - pandas.api.types.is_string_dtype \ pandas.plotting.andrews_curves \ pandas.plotting.autocorrelation_plot \ pandas.plotting.lag_plot \ diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 3d539883f9689..874b567f65937 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -523,6 +523,7 @@ def is_string_dtype(arr_or_dtype) -> bool: Examples -------- + >>> from pandas.api.types import is_string_dtype >>> is_string_dtype(str) True >>> is_string_dtype(object) @@ -674,6 +675,7 @@ def is_integer_dtype(arr_or_dtype) -> bool: Examples -------- + >>> from pandas.api.types import is_integer_dtype >>> is_integer_dtype(str) False >>> is_integer_dtype(int)