Skip to content

Commit cf2b88b

Browse files
authored
DOC Correct EX02 docstring errors (#51264)
DOC Correct EX02 errors
1 parent 0e8331f commit cf2b88b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ci/code_checks.sh

-3
Original file line numberDiff line numberDiff line change
@@ -589,9 +589,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
589589
pandas.Series.sparse.sp_values \
590590
pandas.Timestamp.fromtimestamp \
591591
pandas.api.types.infer_dtype \
592-
pandas.api.types.is_bool_dtype \
593-
pandas.api.types.is_categorical_dtype \
594-
pandas.api.types.is_complex_dtype \
595592
pandas.api.types.is_datetime64_any_dtype \
596593
pandas.api.types.is_datetime64_dtype \
597594
pandas.api.types.is_datetime64_ns_dtype \

pandas/core/dtypes/common.py

+4
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,8 @@ def is_categorical_dtype(arr_or_dtype) -> bool:
469469
470470
Examples
471471
--------
472+
>>> from pandas.api.types import is_categorical_dtype
473+
>>> from pandas import CategoricalDtype
472474
>>> is_categorical_dtype(object)
473475
False
474476
>>> is_categorical_dtype(CategoricalDtype())
@@ -1253,6 +1255,7 @@ def is_bool_dtype(arr_or_dtype) -> bool:
12531255
12541256
Examples
12551257
--------
1258+
>>> from pandas.api.types import is_bool_dtype
12561259
>>> is_bool_dtype(str)
12571260
False
12581261
>>> is_bool_dtype(int)
@@ -1405,6 +1408,7 @@ def is_complex_dtype(arr_or_dtype) -> bool:
14051408
14061409
Examples
14071410
--------
1411+
>>> from pandas.api.types import is_complex_dtype
14081412
>>> is_complex_dtype(str)
14091413
False
14101414
>>> is_complex_dtype(int)

0 commit comments

Comments
 (0)