Skip to content

Commit 1a6d6eb

Browse files
DOC: add SA01 for pandas.api.types.is_datetime64_any_dtype (#58786)
1 parent 904bfe0 commit 1a6d6eb

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
317317
-i "pandas.api.types.is_categorical_dtype SA01" \
318318
-i "pandas.api.types.is_complex PR01,SA01" \
319319
-i "pandas.api.types.is_complex_dtype SA01" \
320-
-i "pandas.api.types.is_datetime64_any_dtype SA01" \
321320
-i "pandas.api.types.is_datetime64_dtype SA01" \
322321
-i "pandas.api.types.is_datetime64_ns_dtype SA01" \
323322
-i "pandas.api.types.is_datetime64tz_dtype SA01" \

pandas/core/dtypes/common.py

+9
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,15 @@ def is_datetime64_any_dtype(arr_or_dtype) -> bool:
880880
bool
881881
Whether or not the array or dtype is of the datetime64 dtype.
882882
883+
See Also
884+
--------
885+
api.types.is_datetime64_dtype : Check whether an array-like or dtype is of the
886+
datetime64 dtype.
887+
api.is_datetime64_ns_dtype : Check whether the provided array or dtype is of the
888+
datetime64[ns] dtype.
889+
api.is_datetime64tz_dtype : Check whether an array-like or dtype is of a
890+
DatetimeTZDtype dtype.
891+
883892
Examples
884893
--------
885894
>>> from pandas.api.types import is_datetime64_any_dtype

0 commit comments

Comments
 (0)