Skip to content

Commit

Permalink
DOC: fix SA01 for pandas.tseries.offsets.LastWeekOfMonth (#60776)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 authored Jan 23, 2025
1 parent be538ef commit 0c4ca3a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.tseries.offsets.Hour.is_on_offset GL08" \
-i "pandas.tseries.offsets.Hour.n GL08" \
-i "pandas.tseries.offsets.Hour.normalize GL08" \
-i "pandas.tseries.offsets.LastWeekOfMonth SA01" \
-i "pandas.tseries.offsets.LastWeekOfMonth.is_on_offset GL08" \
-i "pandas.tseries.offsets.LastWeekOfMonth.n GL08" \
-i "pandas.tseries.offsets.LastWeekOfMonth.normalize GL08" \
Expand Down
9 changes: 9 additions & 0 deletions pandas/_libs/tslibs/offsets.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3723,6 +3723,15 @@ cdef class LastWeekOfMonth(WeekOfMonthMixin):
- 5 is Saturday
- 6 is Sunday.
See Also
--------
tseries.offsets.WeekOfMonth :
Date offset for a specific weekday in a month.
tseries.offsets.MonthEnd :
Date offset for the end of the month.
tseries.offsets.BMonthEnd :
Date offset for the last business day of the month.
Examples
--------
>>> ts = pd.Timestamp(2022, 1, 1)
Expand Down

0 comments on commit 0c4ca3a

Please sign in to comment.