Skip to content

Commit af84a08

Browse files
authored
DOC Correcting EX02 errors (#51198)
Correcting EX02 errors
1 parent 0b0fa9b commit af84a08

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -597,10 +597,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
597597
pandas.api.types.is_datetime64_dtype \
598598
pandas.api.types.is_datetime64_ns_dtype \
599599
pandas.api.types.is_datetime64tz_dtype \
600-
pandas.api.types.is_dict_like \
601-
pandas.api.types.is_file_like \
602600
pandas.api.types.is_float_dtype \
603-
pandas.api.types.is_hashable \
604601
pandas.api.types.is_int64_dtype \
605602
pandas.api.types.is_integer_dtype \
606603
pandas.api.types.is_interval_dtype \

pandas/core/dtypes/inference.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def is_file_like(obj) -> bool:
119119
Examples
120120
--------
121121
>>> import io
122+
>>> from pandas.api.types import is_file_like
122123
>>> buffer = io.StringIO("data")
123124
>>> is_file_like(buffer)
124125
True
@@ -275,6 +276,7 @@ def is_dict_like(obj) -> bool:
275276
276277
Examples
277278
--------
279+
>>> from pandas.api.types import is_dict_like
278280
>>> is_dict_like({1: 2})
279281
True
280282
>>> is_dict_like([1, 2, 3])
@@ -336,6 +338,7 @@ def is_hashable(obj) -> bool:
336338
Examples
337339
--------
338340
>>> import collections
341+
>>> from pandas.api.types import is_hashable
339342
>>> a = ([],)
340343
>>> isinstance(a, collections.abc.Hashable)
341344
True

0 commit comments

Comments
 (0)