Skip to content

Commit

Permalink
DOC Correcting EX02 errors (#51231)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeaMariaLeon authored Feb 8, 2023
1 parent 5d17d73 commit 0d842ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -601,12 +601,9 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.api.types.is_int64_dtype \
pandas.api.types.is_integer_dtype \
pandas.api.types.is_interval_dtype \
pandas.api.types.is_named_tuple \
pandas.api.types.is_numeric_dtype \
pandas.api.types.is_object_dtype \
pandas.api.types.is_period_dtype \
pandas.api.types.is_re \
pandas.api.types.is_re_compilable \
pandas.api.types.is_signed_integer_dtype \
pandas.api.types.is_sparse \
pandas.api.types.is_string_dtype \
Expand Down
4 changes: 4 additions & 0 deletions pandas/core/dtypes/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ def is_re(obj) -> bool:
Examples
--------
>>> from pandas.api.types import is_re
>>> import re
>>> is_re(re.compile(".*"))
True
>>> is_re("foo")
Expand All @@ -170,6 +172,7 @@ def is_re_compilable(obj) -> bool:
Examples
--------
>>> from pandas.api.types import is_re_compilable
>>> is_re_compilable(".*")
True
>>> is_re_compilable(1)
Expand Down Expand Up @@ -310,6 +313,7 @@ def is_named_tuple(obj) -> bool:
Examples
--------
>>> from collections import namedtuple
>>> from pandas.api.types import is_named_tuple
>>> Point = namedtuple("Point", ["x", "y"])
>>> p = Point(1, 2)
>>>
Expand Down

0 comments on commit 0d842ea

Please sign in to comment.