diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 08fbe3be9b092..17ad347d58fdf 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -589,9 +589,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Series.sparse.sp_values \ pandas.Timestamp.fromtimestamp \ pandas.api.types.infer_dtype \ - pandas.api.types.is_bool_dtype \ - pandas.api.types.is_categorical_dtype \ - pandas.api.types.is_complex_dtype \ pandas.api.types.is_datetime64_any_dtype \ pandas.api.types.is_datetime64_dtype \ pandas.api.types.is_datetime64_ns_dtype \ diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 2b21cee06a632..ce6ed6ca60238 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -469,6 +469,8 @@ def is_categorical_dtype(arr_or_dtype) -> bool: Examples -------- + >>> from pandas.api.types import is_categorical_dtype + >>> from pandas import CategoricalDtype >>> is_categorical_dtype(object) False >>> is_categorical_dtype(CategoricalDtype()) @@ -1253,6 +1255,7 @@ def is_bool_dtype(arr_or_dtype) -> bool: Examples -------- + >>> from pandas.api.types import is_bool_dtype >>> is_bool_dtype(str) False >>> is_bool_dtype(int) @@ -1405,6 +1408,7 @@ def is_complex_dtype(arr_or_dtype) -> bool: Examples -------- + >>> from pandas.api.types import is_complex_dtype >>> is_complex_dtype(str) False >>> is_complex_dtype(int)