You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* added exclude_dates argument and test for holiday class
* added entry on whatsnew
* moved pull request to v3.0.0 whatsnew
* updated exclude_dates to be [Timestamp] in constructor
* updated Holiday.dates() to use difference method
* condensed type_checking import statement to 1 line
* switchted exclude_dates type from list[Timestamp] to DatetimeIndex
* raise ValueError if exclude_dates is not DatetimeIndex
* isinstance to check exclude_data
* updated tests for DatetimeIndex type change
* added proper result-expected assertion pattern for tests
* removed redundant asserts
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v3.0.0.rst
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,7 @@ Other enhancements
64
64
- :meth:`Series.nlargest` uses a 'stable' sort internally and will preserve original ordering.
65
65
- :class:`ArrowDtype` now supports ``pyarrow.JsonType`` (:issue:`60958`)
66
66
- :class:`DataFrameGroupBy` and :class:`SeriesGroupBy` methods ``sum``, ``mean``, ``median``, ``prod``, ``min``, ``max``, ``std``, ``var`` and ``sem`` now accept ``skipna`` parameter (:issue:`15675`)
67
+
- :class:`Holiday` has gained the constructor argument and field ``exclude_dates`` to exclude specific datetimes from a custom holiday calendar (:issue:`54382`)
67
68
- :class:`Rolling` and :class:`Expanding` now support ``nunique`` (:issue:`26958`)
68
69
- :class:`Rolling` and :class:`Expanding` now support aggregations ``first`` and ``last`` (:issue:`33155`)
69
70
- :func:`read_parquet` accepts ``to_pandas_kwargs`` which are forwarded to :meth:`pyarrow.Table.to_pandas` which enables passing additional keywords to customize the conversion to pandas, such as ``maps_as_pydicts`` to read the Parquet map data type as python dictionaries (:issue:`56842`)
0 commit comments