Skip to content

Commit d04f9c5

Browse files
authored
DOC: fix EX02 errors in docstrings II (#51323)
1 parent 1a9c8a4 commit d04f9c5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ci/code_checks.sh

-3
Original file line numberDiff line numberDiff line change
@@ -589,13 +589,10 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
589589
pandas.Timestamp.fromtimestamp \
590590
pandas.api.types.infer_dtype \
591591
pandas.api.types.is_datetime64_any_dtype \
592-
pandas.api.types.is_datetime64_dtype \
593592
pandas.api.types.is_datetime64_ns_dtype \
594593
pandas.api.types.is_datetime64tz_dtype \
595594
pandas.api.types.is_integer_dtype \
596595
pandas.api.types.is_interval_dtype \
597-
pandas.api.types.is_numeric_dtype \
598-
pandas.api.types.is_object_dtype \
599596
pandas.api.types.is_period_dtype \
600597
pandas.api.types.is_signed_integer_dtype \
601598
pandas.api.types.is_sparse \

pandas/core/dtypes/common.py

+3
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ def is_object_dtype(arr_or_dtype) -> bool:
170170
171171
Examples
172172
--------
173+
>>> from pandas.api.types import is_object_dtype
173174
>>> is_object_dtype(object)
174175
True
175176
>>> is_object_dtype(int)
@@ -286,6 +287,7 @@ def is_datetime64_dtype(arr_or_dtype) -> bool:
286287
287288
Examples
288289
--------
290+
>>> from pandas.api.types import is_datetime64_dtype
289291
>>> is_datetime64_dtype(object)
290292
False
291293
>>> is_datetime64_dtype(np.datetime64)
@@ -1136,6 +1138,7 @@ def is_numeric_dtype(arr_or_dtype) -> bool:
11361138
11371139
Examples
11381140
--------
1141+
>>> from pandas.api.types import is_numeric_dtype
11391142
>>> is_numeric_dtype(str)
11401143
False
11411144
>>> is_numeric_dtype(int)

0 commit comments

Comments
 (0)