From 619f8bc4bb9818e80b64ad36b90d7672844636ed Mon Sep 17 00:00:00 2001 From: Natalia Mokeeva Date: Fri, 17 Feb 2023 13:16:22 +0100 Subject: [PATCH] DOC: fix EX02 errors in docstrings IV-A --- ci/code_checks.sh | 2 -- pandas/_libs/tslibs/nattype.pyx | 2 +- pandas/_libs/tslibs/timestamps.pyx | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 2c3cc29bd8c0c..add35ffbd3b8e 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -576,7 +576,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then $BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX02 --ignore_functions \ pandas.DataFrame.plot.line \ pandas.Series.plot.line \ - pandas.Timestamp.fromtimestamp \ pandas.api.types.infer_dtype \ pandas.api.types.is_datetime64_any_dtype \ pandas.api.types.is_datetime64_ns_dtype \ @@ -590,7 +589,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.types.is_timedelta64_dtype \ pandas.api.types.is_timedelta64_ns_dtype \ pandas.api.types.is_unsigned_integer_dtype \ - pandas.core.groupby.DataFrameGroupBy.take \ pandas.io.formats.style.Styler.concat \ pandas.io.formats.style.Styler.export \ pandas.io.formats.style.Styler.set_td_classes \ diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index d9d8ce3bb16d1..ff07f5d799339 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -570,7 +570,7 @@ class NaTType(_NaT): Examples -------- - >>> pd.Timestamp.fromtimestamp(1584199972) + >>> pd.Timestamp.fromtimestamp(1584199972) # doctest: +SKIP Timestamp('2020-03-14 15:32:52') Note that the output may change depending on your local time. diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index 9e9dab155a5cf..33e8344c79d6c 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -1451,7 +1451,7 @@ class Timestamp(_Timestamp): Examples -------- - >>> pd.Timestamp.fromtimestamp(1584199972) + >>> pd.Timestamp.fromtimestamp(1584199972) # doctest: +SKIP Timestamp('2020-03-14 15:32:52') Note that the output may change depending on your local time.