Skip to content

Commit 2e74ace

Browse files
Backport PR pandas-dev#52171 on branch 2.0.x (DOC: update SemiMonthEnd examples to not use (n=0)) (pandas-dev#52182)
Backport PR pandas-dev#52171: DOC: update SemiMonthEnd examples to not use (n=0) Co-authored-by: Marco Edward Gorelli <[email protected]>
1 parent 27a8380 commit 2e74ace

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
@@ -2788,10 +2788,10 @@ cdef class SemiMonthEnd(SemiMonthOffset):
27882788
>>> ts + pd.offsets.SemiMonthEnd()
27892789
Timestamp('2022-02-15 00:00:00')
27902790
2791-
If you want to get the result for the current month pass the parameter n equals 0:
2791+
If you want to get the result for the current month:
27922792
27932793
>>> ts = pd.Timestamp(2022, 1, 15)
2794-
>>> ts + pd.offsets.SemiMonthEnd(0)
2794+
>>> pd.offsets.SemiMonthEnd().rollforward(ts)
27952795
Timestamp('2022-01-15 00:00:00')
27962796
"""
27972797
_prefix = "SM"

0 commit comments

Comments
 (0)