Skip to content

Conversation

@sharkipelago
Copy link
Contributor

@sharkipelago sharkipelago commented Jun 14, 2025

Changed Holiday constructor argument days_of_week to raise a ValueError on input of the incorrect type as discussed in #61600

@sharkipelago
Copy link
Contributor Author

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.

- :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``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- :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`)
Copy link
Contributor Author

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?

Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks for clarifying!

@mroeschke mroeschke added the Frequency DateOffsets label Jun 16, 2025
@mroeschke mroeschke merged commit 8a1d5a0 into pandas-dev:main Jun 17, 2025
44 checks passed
@mroeschke
Copy link
Member

Thanks @sharkipelago

@sharkipelago sharkipelago deleted the holiday-daysofweek-value-error branch June 18, 2025 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frequency DateOffsets

2 participants