diff --git a/ci/code_checks.sh b/ci/code_checks.sh index a6447ffe86630..395b1a66a15cb 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -342,7 +342,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.api.types.is_signed_integer_dtype SA01" \ -i "pandas.api.types.is_sparse SA01" \ -i "pandas.api.types.is_string_dtype SA01" \ - -i "pandas.api.types.is_timedelta64_dtype SA01" \ -i "pandas.api.types.is_timedelta64_ns_dtype SA01" \ -i "pandas.api.types.is_unsigned_integer_dtype SA01" \ -i "pandas.api.types.pandas_dtype PR07,RT03,SA01" \ diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 4d8d3c2816f69..c28a21d5c8dd4 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -362,6 +362,13 @@ def is_timedelta64_dtype(arr_or_dtype) -> bool: boolean Whether or not the array-like or dtype is of the timedelta64 dtype. + See Also + -------- + api.types.is_timedelta64_ns_dtype : Check whether the provided array or dtype is + of the timedelta64[ns] dtype. + api.types.is_period_dtype : Check whether an array-like or dtype is of the + Period dtype. + Examples -------- >>> from pandas.core.dtypes.common import is_timedelta64_dtype