Skip to content

DOC: fix SA01 for pandas.tseries.offsets.LastWeekOfMonth #60776

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,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 @@ -3710,6 +3710,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
Loading