-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
BUG: Return type discrepancy in USFederalHolidayCalendar #49118
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
Merged
mroeschke
merged 43 commits into
pandas-dev:main
from
roadswitcher:odd_calendar_behavior
Nov 2, 2022
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
8281084
GH49075 looks weird. Let's add a test and go from there.
roadswitcher 8d1b868
Some cleanup.
roadswitcher eb5c8a8
First pass at the fix.
roadswitcher b00c83f
Missed a space, failed formatting check.
roadswitcher 1720600
pre-commit would have caught that, eh.
roadswitcher d87891f
Missed a spot.
roadswitcher ad0a017
Update test_federal.py
roadswitcher d8e9f9d
Merge branch 'pandas-dev:main' into odd_calendar_behavior
roadswitcher c07f068
Well, that was subtle.
roadswitcher b423bb7
Changed the test.
roadswitcher 9f89326
Git mistake.
roadswitcher 992143c
Backing away from keyboard now.
roadswitcher 8e516f3
Merge branch 'pandas-dev:main' into odd_calendar_behavior
roadswitcher 7486888
next: write more tests.
roadswitcher d63ea70
precommit local run.
roadswitcher e40ce4d
User specified half-open date intervals can return inconsistent results.
roadswitcher c953651
Added logic to close open time intervals into AbstractHolidayCalender
roadswitcher 68f8db4
OK, I've learned pre-commit doesn't pass wildcards all the way down a…
roadswitcher 344238e
Merge branch 'pandas-dev:main' into odd_calendar_behavior
roadswitcher 3172392
Ensure DatetimeIndex returned in _apply_rule
roadswitcher 824abb6
Merge branch 'odd_calendar_behavior' of github.com:roadswitcher/panda…
roadswitcher cb6ab53
Ensure DatetimeIndex returned in _apply_rule
roadswitcher b865481
Caught formatting.
roadswitcher 0c8e325
Missed running isort locally.
roadswitcher 718daa0
Merge branch 'main' into odd_calendar_behavior
roadswitcher 5aca82d
Well, that was subtle.
roadswitcher c6b2d5b
Changed URL to current OPM source-of-record, updated whatsnew
roadswitcher da6c1a3
Merge branch 'main' into odd_calendar_behavior
roadswitcher a8a6244
Update v2.0.0.rst
roadswitcher ec087a3
Add dtype to empty index ( caught by mypy in CI, not part of pre-comm…
roadswitcher a6242a9
Updated holiday.py
roadswitcher 8922123
... and forgot to pre-commit run black
roadswitcher 592f705
Merge branch 'main' into odd_calendar_behavior
roadswitcher cd848c1
Merge branch 'main' into odd_calendar_behavior
roadswitcher a502a06
Update pandas/tseries/holiday.py
roadswitcher 67c83b8
Update v2.0.0.rst
roadswitcher 1ae7c11
Merge branch 'main' into odd_calendar_behavior
roadswitcher 6188c80
Added test to test_federal.py to ensure comparison against known-good…
roadswitcher 4283115
Add change to test_federal to compare against constructed DatetimeInd…
roadswitcher 6122af8
Merge branch 'main' into odd_calendar_behavior
roadswitcher ad311f0
Merge branch 'main' into odd_calendar_behavior
roadswitcher 176f3e3
Merge branch 'main' into odd_calendar_behavior
roadswitcher 45521a7
Update doc/source/whatsnew/v2.0.0.rst
mroeschke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Well, that was subtle.
- Loading branch information
commit 5aca82dcbcf994f814ea7d584900b47d07fa77e2
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
One last item: Could you assert that
results_2018andresults_2019equal manually constructedDatetimeIndex? Just in case a future change affects both in bad wayThere 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.
DatetimeIndextest_holidayand replaced with comparison against constructedDatetimeIndexRan precommit, fixed
black/isort/flake8warnings, re-ranpre-commit, and off we go.