Skip to content
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 @@ -303,7 +303,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.tseries.offsets.Second.is_on_offset GL08" \
-i "pandas.tseries.offsets.Second.n GL08" \
-i "pandas.tseries.offsets.Second.normalize GL08" \
-i "pandas.tseries.offsets.SemiMonthBegin SA01" \
-i "pandas.tseries.offsets.SemiMonthBegin.day_of_month GL08" \
-i "pandas.tseries.offsets.SemiMonthBegin.is_on_offset GL08" \
-i "pandas.tseries.offsets.SemiMonthBegin.n GL08" \
Expand Down
11 changes: 11 additions & 0 deletions pandas/_libs/tslibs/offsets.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3371,6 +3371,10 @@ cdef class SemiMonthBegin(SemiMonthOffset):
"""
Two DateOffset's per month repeating on the first day of the month & day_of_month.

This offset moves dates to the first day of the month and an additional specified
day (typically the 15th by default), useful in scenarios where bi-monthly processing
occurs on set days.

Attributes
----------
n : int, default 1
Expand All @@ -3380,6 +3384,13 @@ cdef class SemiMonthBegin(SemiMonthOffset):
day_of_month : int, {1, 3,...,27}, default 15
A specific integer for the day of the month.

See Also
--------
tseries.offsets.SemiMonthEnd : Two DateOffset's per month repeating on the last day
of the month & day_of_month.
tseries.offsets.MonthEnd : Offset to the last calendar day of the month.
tseries.offsets.MonthBegin : Offset to the first calendar day of the month.

Examples
--------
>>> ts = pd.Timestamp(2022, 1, 1)
Expand Down