Skip to content

Commit c4caed6

Browse files
authored
DOC: fix EX02 errors in docstrings III (#51337)
1 parent 031e9bb commit c4caed6

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

ci/code_checks.sh

-3
Original file line numberDiff line numberDiff line change
@@ -578,10 +578,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
578578
MSG='Partially validate docstrings (EX02)' ; echo $MSG
579579
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX02 --ignore_functions \
580580
pandas.DataFrame.plot.line \
581-
pandas.Period.strftime \
582-
pandas.Series.floordiv \
583581
pandas.Series.plot.line \
584-
pandas.Series.rfloordiv \
585582
pandas.Series.sparse.density \
586583
pandas.Series.sparse.npoints \
587584
pandas.Series.sparse.sp_values \

pandas/_libs/tslibs/period.pyx

+1
Original file line numberDiff line numberDiff line change
@@ -2474,6 +2474,7 @@ cdef class _Period(PeriodMixin):
24742474
Examples
24752475
--------
24762476

2477+
>>> from pandas import Period
24772478
>>> a = Period(freq='Q-JUL', year=2006, quarter=1)
24782479
>>> a.strftime('%F-Q%q')
24792480
'2006-Q1'

pandas/core/ops/docstrings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
156156
+ """
157157
>>> a.floordiv(b, fill_value=0)
158158
a 1.0
159-
b NaN
160-
c NaN
159+
b inf
160+
c inf
161161
d 0.0
162162
e NaN
163163
dtype: float64

0 commit comments

Comments
 (0)