From 11cd6a61308d180ea3cb82ac333da5dd1fa2d8d6 Mon Sep 17 00:00:00 2001 From: Natalia Mokeeva Date: Sun, 19 Feb 2023 01:03:13 +0100 Subject: [PATCH] DOC: fix EX02 errors in docstrings --- ci/code_checks.sh | 3 --- pandas/core/dtypes/common.py | 2 ++ pandas/io/json/_table_schema.py | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index e76d355f139ed..0333975ed269f 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -583,14 +583,11 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.types.is_signed_integer_dtype \ pandas.api.types.is_sparse \ pandas.api.types.is_string_dtype \ - pandas.api.types.is_timedelta64_dtype \ - pandas.api.types.is_timedelta64_ns_dtype \ pandas.api.types.is_unsigned_integer_dtype \ pandas.io.formats.style.Styler.concat \ pandas.io.formats.style.Styler.export \ pandas.io.formats.style.Styler.set_td_classes \ pandas.io.formats.style.Styler.use \ - pandas.io.json.build_table_schema \ pandas.plotting.andrews_curves \ pandas.plotting.autocorrelation_plot \ pandas.plotting.lag_plot \ diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 0fbb0006d0b32..3be290ca2dfac 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -363,6 +363,7 @@ def is_timedelta64_dtype(arr_or_dtype) -> bool: Examples -------- + >>> from pandas.core.dtypes.common import is_timedelta64_dtype >>> is_timedelta64_dtype(object) False >>> is_timedelta64_dtype(np.timedelta64) @@ -972,6 +973,7 @@ def is_timedelta64_ns_dtype(arr_or_dtype) -> bool: Examples -------- + >>> from pandas.core.dtypes.common import is_timedelta64_ns_dtype >>> is_timedelta64_ns_dtype(np.dtype('m8[ns]')) True >>> is_timedelta64_ns_dtype(np.dtype('m8[ps]')) # Wrong frequency diff --git a/pandas/io/json/_table_schema.py b/pandas/io/json/_table_schema.py index 9539419131a22..372aaf98c3b2c 100644 --- a/pandas/io/json/_table_schema.py +++ b/pandas/io/json/_table_schema.py @@ -265,6 +265,7 @@ def build_table_schema( Examples -------- + >>> from pandas.io.json._table_schema import build_table_schema >>> df = pd.DataFrame( ... {'A': [1, 2, 3], ... 'B': ['a', 'b', 'c'],