Skip to content

Commit

Permalink
DOC: add missing parameters to offsets classes: BYearEnd, BusinessHou…
Browse files Browse the repository at this point in the history
…r, WeekOfMonth (pandas-dev#53183)
  • Loading branch information
natmokval authored and Yi Wei committed May 19, 2023
1 parent 61ee58a commit 50d5796
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion pandas/_libs/tslibs/offsets.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1714,6 +1714,8 @@ cdef class BusinessHour(BusinessMixin):
Start time of your custom business hour in 24h format.
end : str, time, or list of str/time, default: "17:00"
End time of your custom business hour in 24h format.
offset : timedelta, default timedelta(0)
Time offset to apply.
Examples
--------
Expand Down Expand Up @@ -2243,6 +2245,15 @@ cdef class BYearEnd(YearOffset):
"""
DateOffset increments between the last business day of the year.
Parameters
----------
n : int, default 1
The number of years represented.
normalize : bool, default False
Normalize start/end dates to midnight before generating date range.
month : int, default 1
A specific integer for the month of the year.
Examples
--------
>>> from pandas.tseries.offsets import BYearEnd
Expand Down Expand Up @@ -3073,7 +3084,10 @@ cdef class WeekOfMonth(WeekOfMonthMixin):
Parameters
----------
n : int
n : int, default 1
The number of months represented.
normalize : bool, default False
Normalize start/end dates to midnight before generating date range.
week : int {0, 1, 2, 3, ...}, default 0
A specific integer for the week of the month.
e.g. 0 is 1st week of month, 1 is the 2nd week, etc.
Expand Down

0 comments on commit 50d5796

Please sign in to comment.