Commit 8dd045d
BUG: _apply_rule() ignores tz info on an empty list of observances (#54655)
* _apply_rule() instantiates a new empty DatetimeIndex without regard to possible tz in an empty series of provided dates.
* Added a test.
* Let's format this.
* Update pandas/tseries/holiday.py
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
* Wrapping up post-comment changes: delete superflous object, and clean up the test.
* Let's put that back.
* Update whatsnew
* Moved update to correct version file under doc/source/whatsnew
* Revert commit.
* Fix wording on the whatsnew update.
* Update doc/source/whatsnew/v2.2.0.rst
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
* Update doc/source/whatsnew/v2.2.0.rst
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
---------
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>1 parent 487c594 commit 8dd045d
File tree
3 files changed
+21
-2
lines changed- doc/source/whatsnew
- pandas
- tests/tseries/holiday
- tseries
3 files changed
+21
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
311 | 315 | | |
312 | 316 | | |
313 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
0 commit comments