Skip to content

Commit c133327

Browse files
authored
DOC: fix EX02 errors in docstrings (pandas-dev#51491)
1 parent 8159be6 commit c133327

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ci/code_checks.sh

-3
Original file line numberDiff line numberDiff line change
@@ -583,14 +583,11 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
583583
pandas.api.types.is_signed_integer_dtype \
584584
pandas.api.types.is_sparse \
585585
pandas.api.types.is_string_dtype \
586-
pandas.api.types.is_timedelta64_dtype \
587-
pandas.api.types.is_timedelta64_ns_dtype \
588586
pandas.api.types.is_unsigned_integer_dtype \
589587
pandas.io.formats.style.Styler.concat \
590588
pandas.io.formats.style.Styler.export \
591589
pandas.io.formats.style.Styler.set_td_classes \
592590
pandas.io.formats.style.Styler.use \
593-
pandas.io.json.build_table_schema \
594591
pandas.plotting.andrews_curves \
595592
pandas.plotting.autocorrelation_plot \
596593
pandas.plotting.lag_plot \

pandas/core/dtypes/common.py

+2
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ def is_timedelta64_dtype(arr_or_dtype) -> bool:
363363
364364
Examples
365365
--------
366+
>>> from pandas.core.dtypes.common import is_timedelta64_dtype
366367
>>> is_timedelta64_dtype(object)
367368
False
368369
>>> is_timedelta64_dtype(np.timedelta64)
@@ -972,6 +973,7 @@ def is_timedelta64_ns_dtype(arr_or_dtype) -> bool:
972973
973974
Examples
974975
--------
976+
>>> from pandas.core.dtypes.common import is_timedelta64_ns_dtype
975977
>>> is_timedelta64_ns_dtype(np.dtype('m8[ns]'))
976978
True
977979
>>> is_timedelta64_ns_dtype(np.dtype('m8[ps]')) # Wrong frequency

pandas/io/json/_table_schema.py

+1
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ def build_table_schema(
265265
266266
Examples
267267
--------
268+
>>> from pandas.io.json._table_schema import build_table_schema
268269
>>> df = pd.DataFrame(
269270
... {'A': [1, 2, 3],
270271
... 'B': ['a', 'b', 'c'],

0 commit comments

Comments
 (0)