Skip to content

Commit 15e4680

Browse files
committed
Update start/end parameter documentation for BusinessHour and CustomBusinessHour to mention allowed input types of time and list of str/time
1 parent 1c71d7d commit 15e4680

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/_libs/tslibs/offsets.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,9 +1615,9 @@ cdef class BusinessHour(BusinessMixin):
16151615
Normalize start/end dates to midnight before generating date range.
16161616
weekmask : str, Default 'Mon Tue Wed Thu Fri'
16171617
Weekmask of valid business days, passed to ``numpy.busdaycalendar``.
1618-
start : str, default "09:00"
1618+
start : str, time, or list of str/time, default "09:00"
16191619
Start time of your custom business hour in 24h format.
1620-
end : str, default: "17:00"
1620+
end : str, time, or list of str/time, default: "17:00"
16211621
End time of your custom business hour in 24h format.
16221622
16231623
Examples
@@ -3619,9 +3619,9 @@ cdef class CustomBusinessHour(BusinessHour):
36193619
Normalize start/end dates to midnight before generating date range.
36203620
weekmask : str, Default 'Mon Tue Wed Thu Fri'
36213621
Weekmask of valid business days, passed to ``numpy.busdaycalendar``.
3622-
start : str, default "09:00"
3622+
start : str, time, or list of str/time, default "09:00"
36233623
Start time of your custom business hour in 24h format.
3624-
end : str, default: "17:00"
3624+
end : str, time, or list of str/time, default: "17:00"
36253625
End time of your custom business hour in 24h format.
36263626
36273627
Examples

0 commit comments

Comments
 (0)