Skip to content

Commit 2c956ff

Browse files
committed
Fix is_datetime64_dtype
1 parent 1493f57 commit 2c956ff

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
123123
-i "pandas.Timestamp.tzinfo GL08" \
124124
-i "pandas.Timestamp.year GL08" \
125125
-i "pandas.api.extensions.ExtensionArray.interpolate PR01,SA01" \
126-
-i "pandas.api.types.is_datetime64_dtype SA01" \
127126
-i "pandas.api.types.is_datetime64_ns_dtype SA01" \
128127
-i "pandas.api.types.is_datetime64tz_dtype SA01" \
129128
-i "pandas.api.types.is_dict_like PR07,SA01" \

pandas/core/dtypes/common.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,13 @@ def is_datetime64_dtype(arr_or_dtype) -> bool:
279279
boolean
280280
Whether or not the array-like or dtype is of the datetime64 dtype.
281281
282+
See Also
283+
--------
284+
api.types.is_datetime64_ns_dtype: Check whether the provided array or
285+
dtype is of the datetime64[ns] dtype.
286+
api.types.is_datetime64_any_dtype: Check whether the provided array or
287+
dtype is of the datetime64 dtype.
288+
282289
Examples
283290
--------
284291
>>> from pandas.api.types import is_datetime64_dtype

0 commit comments

Comments
 (0)