Skip to content

Commit 1aacf5f

Browse files
natmokvalim-vinicius
authored and
im-vinicius
committed
DOC: add missing parameters to offsets classes: BYearEnd, BusinessHour, WeekOfMonth (pandas-dev#53183)
1 parent fffa8ce commit 1aacf5f

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

pandas/_libs/tslibs/offsets.pyx

+15-1
Original file line numberDiff line numberDiff line change
@@ -1714,6 +1714,8 @@ cdef class BusinessHour(BusinessMixin):
17141714
Start time of your custom business hour in 24h format.
17151715
end : str, time, or list of str/time, default: "17:00"
17161716
End time of your custom business hour in 24h format.
1717+
offset : timedelta, default timedelta(0)
1718+
Time offset to apply.
17171719
17181720
Examples
17191721
--------
@@ -2243,6 +2245,15 @@ cdef class BYearEnd(YearOffset):
22432245
"""
22442246
DateOffset increments between the last business day of the year.
22452247
2248+
Parameters
2249+
----------
2250+
n : int, default 1
2251+
The number of years represented.
2252+
normalize : bool, default False
2253+
Normalize start/end dates to midnight before generating date range.
2254+
month : int, default 1
2255+
A specific integer for the month of the year.
2256+
22462257
Examples
22472258
--------
22482259
>>> from pandas.tseries.offsets import BYearEnd
@@ -3073,7 +3084,10 @@ cdef class WeekOfMonth(WeekOfMonthMixin):
30733084
30743085
Parameters
30753086
----------
3076-
n : int
3087+
n : int, default 1
3088+
The number of months represented.
3089+
normalize : bool, default False
3090+
Normalize start/end dates to midnight before generating date range.
30773091
week : int {0, 1, 2, 3, ...}, default 0
30783092
A specific integer for the week of the month.
30793093
e.g. 0 is 1st week of month, 1 is the 2nd week, etc.

0 commit comments

Comments
 (0)