DOC/ENH: Holiday
documentation is missing or hard to find for re-arranged national holidays.
#54382
Open
1 task done
Labels
Pandas version checks
main
hereLocation of the documentation
https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#holidays-holiday-calendars
Documentation problem
I am creating a financial calendar using pandas holiday calendar functions:
CustomBusinessDay
andAbstractHolidayCalendar
from a set ofrules
.In UK the spring bank holiday is defined as the last Monday in May which we can code as a rule object:
In 2022, to commemorate the Queen's Platinum Jubilee this holiday was moved to Thursday 2nd June and an extra holiday added on Friday 3rd June.
Adding an extra holiday to the rules is easy..
I wondered if there were any options to the
Holiday
class that allowed excluding a list of dates from the observance. It was very difficult to find any documentation on the class and I had to resort to looking at the code.In the code the class is poorly documented and has inaccuracies.
There was also no ability to do what I was hoping. The applied solution was:
The text was updated successfully, but these errors were encountered: