Skip to content

Commit 56dc877

Browse files
authored
DOC: fix EX02 errors in docstrings (#51453)
DOC: fix EX02 errors in docstrings IV-A
1 parent 78cf4d7 commit 56dc877

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

ci/code_checks.sh

-2
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
576576
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX02 --ignore_functions \
577577
pandas.DataFrame.plot.line \
578578
pandas.Series.plot.line \
579-
pandas.Timestamp.fromtimestamp \
580579
pandas.api.types.infer_dtype \
581580
pandas.api.types.is_datetime64_any_dtype \
582581
pandas.api.types.is_datetime64_ns_dtype \
@@ -590,7 +589,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
590589
pandas.api.types.is_timedelta64_dtype \
591590
pandas.api.types.is_timedelta64_ns_dtype \
592591
pandas.api.types.is_unsigned_integer_dtype \
593-
pandas.core.groupby.DataFrameGroupBy.take \
594592
pandas.io.formats.style.Styler.concat \
595593
pandas.io.formats.style.Styler.export \
596594
pandas.io.formats.style.Styler.set_td_classes \

pandas/_libs/tslibs/nattype.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ class NaTType(_NaT):
570570
571571
Examples
572572
--------
573-
>>> pd.Timestamp.fromtimestamp(1584199972)
573+
>>> pd.Timestamp.fromtimestamp(1584199972) # doctest: +SKIP
574574
Timestamp('2020-03-14 15:32:52')
575575
576576
Note that the output may change depending on your local time.

pandas/_libs/tslibs/timestamps.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ class Timestamp(_Timestamp):
14511451
14521452
Examples
14531453
--------
1454-
>>> pd.Timestamp.fromtimestamp(1584199972)
1454+
>>> pd.Timestamp.fromtimestamp(1584199972) # doctest: +SKIP
14551455
Timestamp('2020-03-14 15:32:52')
14561456
14571457
Note that the output may change depending on your local time.

0 commit comments

Comments
 (0)