Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
MSG='Validate Docstrings' ; echo "$MSG"
"$BASE_DIR"/scripts/validate_docstrings.py \
--format=actions \
-i ES01 `# For now it is ok if docstrings are missing the extended summary` \
-i "pandas.tseries.offsets.CustomBusinessHour PR02,SA01" # There should be no backslash in the final line, please keep this comment in the last ignored function
-i ES01 `# For now it is ok if docstrings are missing the extended summary`

RET=$(($RET + $?)) ; echo $MSG "DONE"

Expand Down
1 change: 1 addition & 0 deletions doc/source/reference/offset_frequency.rst
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ Properties
CustomBusinessHour.holidays
CustomBusinessHour.start
CustomBusinessHour.end
CustomBusinessHour.offset

Methods
~~~~~~~
Expand Down
9 changes: 8 additions & 1 deletion pandas/_libs/tslibs/offsets.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -6499,7 +6499,7 @@ cdef class CustomBusinessHour(BusinessHour):
In CustomBusinessHour we can use custom weekmask, holidays, and calendar.
Parameters
Attributes
----------
n : int, default 1
The number of hours represented.
Expand All @@ -6519,6 +6519,13 @@ cdef class CustomBusinessHour(BusinessHour):
offset : timedelta, default timedelta(0)
Time offset to apply.
See Also
--------
:class:`~pandas.tseries.offsets.BusinessHour` :
DateOffset subclass representing possibly n business hours.
:class:`~pandas.tseries.offsets.CustomBusinessDay` :
DateOffset subclass representing custom business days.
Examples
--------
In the example below the default parameters give the next business hour.
Expand Down
Loading