diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 2fa023500731e..975f95d4a25dc 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -591,9 +591,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.types.is_datetime64_ns_dtype \ pandas.api.types.is_datetime64tz_dtype \ pandas.api.types.is_integer_dtype \ - pandas.api.types.is_interval_dtype \ - pandas.api.types.is_period_dtype \ - pandas.api.types.is_signed_integer_dtype \ pandas.api.types.is_sparse \ pandas.api.types.is_string_dtype \ pandas.api.types.is_timedelta64_dtype \ diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 3444ad77c2981..4512bf0cedfbc 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -397,6 +397,7 @@ def is_period_dtype(arr_or_dtype) -> bool: Examples -------- + >>> from pandas.api.types import is_period_dtype >>> is_period_dtype(object) False >>> is_period_dtype(PeriodDtype(freq="D")) @@ -433,6 +434,7 @@ def is_interval_dtype(arr_or_dtype) -> bool: Examples -------- + >>> from pandas.api.types import is_interval_dtype >>> is_interval_dtype(object) False >>> is_interval_dtype(IntervalDtype()) @@ -727,6 +729,7 @@ def is_signed_integer_dtype(arr_or_dtype) -> bool: Examples -------- + >>> from pandas.api.types import is_signed_integer_dtype >>> is_signed_integer_dtype(str) False >>> is_signed_integer_dtype(int)