-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
DOC/ENH: Holiday days_of_week value error #61658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
DOC/ENH: Holiday days_of_week value error #61658
Conversation
I also edited the docstring a little bit as I was a bit confused what days_of_week was supposed to do from the docstring alone. Happy to delete the docstring edits if they don't make sense though. |
doc/source/whatsnew/v3.0.0.rst
Outdated
@@ -65,6 +65,7 @@ Other enhancements | |||
- :class:`ArrowDtype` now supports ``pyarrow.JsonType`` (:issue:`60958`) | |||
- :class:`DataFrameGroupBy` and :class:`SeriesGroupBy` methods ``sum``, ``mean``, ``median``, ``prod``, ``min``, ``max``, ``std``, ``var`` and ``sem`` now accept ``skipna`` parameter (:issue:`15675`) | |||
- :class:`Holiday` has gained the constructor argument and field ``exclude_dates`` to exclude specific datetimes from a custom holiday calendar (:issue:`54382`) | |||
- :class:`Holiday` constructor argument ``days_of_week`` will raise a ``ValueError`` when type is something other than ``None`` or ``tuple`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- :class:`Holiday` constructor argument ``days_of_week`` will raise a ``ValueError`` when type is something other than ``None`` or ``tuple`` | |
- :class:`Holiday` constructor argument ``days_of_week`` will raise a ``ValueError`` when type is something other than ``None`` or ``tuple`` (:issue:`61658`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I specify that it's a PR since there is no original issue? Or :issue: can refer to both PRs and issues?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It applies to both issues and PRs
Changed
Holiday
constructor argumentdays_of_week
to raise aValueError
on input of the incorrect type as discussed in #61600doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.