Skip to content

Commit ef83e91

Browse files
committed
Fix is_datetime64_ns_dtype
1 parent 2c956ff commit ef83e91

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_ns_dtype SA01" \
127126
-i "pandas.api.types.is_datetime64tz_dtype SA01" \
128127
-i "pandas.api.types.is_dict_like PR07,SA01" \
129128
-i "pandas.api.types.is_extension_array_dtype SA01" \

pandas/core/dtypes/common.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,13 @@ def is_datetime64_ns_dtype(arr_or_dtype) -> bool:
990990
bool
991991
Whether or not the array or dtype is of the datetime64[ns] dtype.
992992
993+
See Also
994+
--------
995+
api.types.is_datetime64_dtype: Check whether an array-like or
996+
dtype is of the datetime64 dtype.
997+
api.types.is_datetime64_any_dtype: Check whether the provided array or
998+
dtype is of the datetime64 dtype.
999+
9931000
Examples
9941001
--------
9951002
>>> from pandas.api.types import is_datetime64_ns_dtype

0 commit comments

Comments
 (0)