Skip to content

Commit 7d3474a

Browse files
DOC: fix PR02 for pandas.tseries.offsets.MonthEnd methods (#58703)
* DOC: add PR02 for MonthEnd methods * DOC: remove PR02 for MonthEnd methods * DOC: restore SA01 for pandas.tseries.offsets.SemiMonthEnd * DOC: restore CustomBusinessMonthEnd * DOC: restore pandas.tseries.offsets.CBMonthEnd PR02
1 parent c103c7a commit 7d3474a

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

ci/code_checks.sh

+1-4
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
548548
-i "pandas.tseries.api.guess_datetime_format SA01" \
549549
-i "pandas.tseries.offsets.BDay PR02,SA01" \
550550
-i "pandas.tseries.offsets.BMonthBegin PR02" \
551-
-i "pandas.tseries.offsets.BMonthEnd PR02" \
552551
-i "pandas.tseries.offsets.BQuarterBegin PR02" \
553552
-i "pandas.tseries.offsets.BQuarterBegin.freqstr SA01" \
554553
-i "pandas.tseries.offsets.BQuarterBegin.is_on_offset GL08" \
@@ -609,7 +608,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
609608
-i "pandas.tseries.offsets.BusinessMonthBegin.nanos GL08" \
610609
-i "pandas.tseries.offsets.BusinessMonthBegin.normalize GL08" \
611610
-i "pandas.tseries.offsets.BusinessMonthBegin.rule_code GL08" \
612-
-i "pandas.tseries.offsets.BusinessMonthEnd PR02" \
613611
-i "pandas.tseries.offsets.BusinessMonthEnd.freqstr SA01" \
614612
-i "pandas.tseries.offsets.BusinessMonthEnd.is_on_offset GL08" \
615613
-i "pandas.tseries.offsets.BusinessMonthEnd.n GL08" \
@@ -754,7 +752,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
754752
-i "pandas.tseries.offsets.MonthBegin.nanos GL08" \
755753
-i "pandas.tseries.offsets.MonthBegin.normalize GL08" \
756754
-i "pandas.tseries.offsets.MonthBegin.rule_code GL08" \
757-
-i "pandas.tseries.offsets.MonthEnd PR02" \
758755
-i "pandas.tseries.offsets.MonthEnd.freqstr SA01" \
759756
-i "pandas.tseries.offsets.MonthEnd.is_on_offset GL08" \
760757
-i "pandas.tseries.offsets.MonthEnd.n GL08" \
@@ -799,7 +796,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
799796
-i "pandas.tseries.offsets.SemiMonthBegin.nanos GL08" \
800797
-i "pandas.tseries.offsets.SemiMonthBegin.normalize GL08" \
801798
-i "pandas.tseries.offsets.SemiMonthBegin.rule_code GL08" \
802-
-i "pandas.tseries.offsets.SemiMonthEnd PR02,SA01" \
799+
-i "pandas.tseries.offsets.SemiMonthEnd SA01" \
803800
-i "pandas.tseries.offsets.SemiMonthEnd.day_of_month GL08" \
804801
-i "pandas.tseries.offsets.SemiMonthEnd.freqstr SA01" \
805802
-i "pandas.tseries.offsets.SemiMonthEnd.is_on_offset GL08" \

pandas/_libs/tslibs/offsets.pyx

+3-3
Original file line numberDiff line numberDiff line change
@@ -2939,7 +2939,7 @@ cdef class MonthEnd(MonthOffset):
29392939
29402940
MonthEnd goes to the next date which is an end of the month.
29412941
2942-
Parameters
2942+
Attributes
29432943
----------
29442944
n : int, default 1
29452945
The number of months represented.
@@ -3014,7 +3014,7 @@ cdef class BusinessMonthEnd(MonthOffset):
30143014
30153015
BusinessMonthEnd goes to the next date which is the last business day of the month.
30163016
3017-
Parameters
3017+
Attributes
30183018
----------
30193019
n : int, default 1
30203020
The number of months represented.
@@ -3222,7 +3222,7 @@ cdef class SemiMonthEnd(SemiMonthOffset):
32223222
"""
32233223
Two DateOffset's per month repeating on the last day of the month & day_of_month.
32243224
3225-
Parameters
3225+
Attributes
32263226
----------
32273227
n : int, default 1
32283228
The number of months represented.

0 commit comments

Comments
 (0)