Skip to content

Commit 2f8b190

Browse files
authored
DOC: update SemiMonthEnd examples to not use (n=0) (#52171)
remove tip to use n=0 Co-authored-by: MarcoGorelli <>
1 parent 525f1ef commit 2f8b190

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_libs/tslibs/offsets.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -2815,10 +2815,10 @@ cdef class SemiMonthEnd(SemiMonthOffset):
28152815
>>> ts + pd.offsets.SemiMonthEnd()
28162816
Timestamp('2022-02-15 00:00:00')
28172817
2818-
If you want to get the result for the current month pass the parameter n equals 0:
2818+
If you want to get the result for the current month:
28192819
28202820
>>> ts = pd.Timestamp(2022, 1, 15)
2821-
>>> ts + pd.offsets.SemiMonthEnd(0)
2821+
>>> pd.offsets.SemiMonthEnd().rollforward(ts)
28222822
Timestamp('2022-01-15 00:00:00')
28232823
"""
28242824
_prefix = "SM"

0 commit comments

Comments
 (0)