Skip to content

Commit

Permalink
DOC: fix PR02 for pandas.tseries.offsets.MonthEnd methods (#58703)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
tuhinsharma121 committed May 14, 2024
1 parent c103c7a commit 7d3474a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.tseries.api.guess_datetime_format SA01" \
-i "pandas.tseries.offsets.BDay PR02,SA01" \
-i "pandas.tseries.offsets.BMonthBegin PR02" \
-i "pandas.tseries.offsets.BMonthEnd PR02" \
-i "pandas.tseries.offsets.BQuarterBegin PR02" \
-i "pandas.tseries.offsets.BQuarterBegin.freqstr SA01" \
-i "pandas.tseries.offsets.BQuarterBegin.is_on_offset GL08" \
Expand Down Expand Up @@ -609,7 +608,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.tseries.offsets.BusinessMonthBegin.nanos GL08" \
-i "pandas.tseries.offsets.BusinessMonthBegin.normalize GL08" \
-i "pandas.tseries.offsets.BusinessMonthBegin.rule_code GL08" \
-i "pandas.tseries.offsets.BusinessMonthEnd PR02" \
-i "pandas.tseries.offsets.BusinessMonthEnd.freqstr SA01" \
-i "pandas.tseries.offsets.BusinessMonthEnd.is_on_offset GL08" \
-i "pandas.tseries.offsets.BusinessMonthEnd.n GL08" \
Expand Down Expand Up @@ -754,7 +752,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.tseries.offsets.MonthBegin.nanos GL08" \
-i "pandas.tseries.offsets.MonthBegin.normalize GL08" \
-i "pandas.tseries.offsets.MonthBegin.rule_code GL08" \
-i "pandas.tseries.offsets.MonthEnd PR02" \
-i "pandas.tseries.offsets.MonthEnd.freqstr SA01" \
-i "pandas.tseries.offsets.MonthEnd.is_on_offset GL08" \
-i "pandas.tseries.offsets.MonthEnd.n GL08" \
Expand Down Expand Up @@ -799,7 +796,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.tseries.offsets.SemiMonthBegin.nanos GL08" \
-i "pandas.tseries.offsets.SemiMonthBegin.normalize GL08" \
-i "pandas.tseries.offsets.SemiMonthBegin.rule_code GL08" \
-i "pandas.tseries.offsets.SemiMonthEnd PR02,SA01" \
-i "pandas.tseries.offsets.SemiMonthEnd SA01" \
-i "pandas.tseries.offsets.SemiMonthEnd.day_of_month GL08" \
-i "pandas.tseries.offsets.SemiMonthEnd.freqstr SA01" \
-i "pandas.tseries.offsets.SemiMonthEnd.is_on_offset GL08" \
Expand Down
6 changes: 3 additions & 3 deletions pandas/_libs/tslibs/offsets.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2939,7 +2939,7 @@ cdef class MonthEnd(MonthOffset):
MonthEnd goes to the next date which is an end of the month.
Parameters
Attributes
----------
n : int, default 1
The number of months represented.
Expand Down Expand Up @@ -3014,7 +3014,7 @@ cdef class BusinessMonthEnd(MonthOffset):
BusinessMonthEnd goes to the next date which is the last business day of the month.
Parameters
Attributes
----------
n : int, default 1
The number of months represented.
Expand Down Expand Up @@ -3222,7 +3222,7 @@ cdef class SemiMonthEnd(SemiMonthOffset):
"""
Two DateOffset's per month repeating on the last day of the month & day_of_month.
Parameters
Attributes
----------
n : int, default 1
The number of months represented.
Expand Down

0 comments on commit 7d3474a

Please sign in to comment.