CLN: Refactor pd.offsets.CustomBusinessDay #8458
Labels
Datetime
Datetime data dtype
Frequency
DateOffsets
good first issue
Internals
Related to non-user accessible pandas implementation
xref #8293
The code has evolved quite a bit and could probably benefit from refactoring.
In particular warpping the busdaycalendar logic in a wrapper class could make the code easier.
Notes about the current implementation:
CustomBusinessDay
usesnp.busdaycalendar
to do the computations.CustomBusinessDay
offsets the calendar is cached inkwds
.CustomBusinessDay
instances, the attributesholidays
andweekdays
are used.The text was updated successfully, but these errors were encountered: