-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Masking and overflow checks for datetimeindex and timedeltaindex ops #18020
Merged
Merged
Changes from 3 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e9dd35b
masking and overflow checks for datetimeindex and timedeltaindex ops
jbrockmendel 36aea69
flake8 fixup
jbrockmendel dd1eddd
add todo notes
jbrockmendel 92afc80
Move test somewhere it will actually get run
jbrockmendel de663a1
remove invalid test
jbrockmendel 183e8d0
Move towards parameterized tests; fix for np.datetime64 arith #7996
jbrockmendel 75a403c
test cases for datetime64/timedelta64 with different units
jbrockmendel ff72d98
Remove new test file; move two currently-failing tests to existing mo…
jbrockmendel ac246b1
typo fixup
jbrockmendel 05254e2
fixup NameErrors
jbrockmendel 7214823
Merge branch 'master' of https://github.com/pandas-dev/pandas into arith
jbrockmendel f048ffa
to_datetime-->to_pydatetime; fixes unrelated test failure
jbrockmendel 7be5984
whatsnew notes
jbrockmendel 95f801f
Merge branch 'master' of https://github.com/pandas-dev/pandas into arith
jbrockmendel 586d872
Merge branch 'master' of https://github.com/pandas-dev/pandas into arith
jbrockmendel 24dd75b
clarify todo note per reviewre suggestion
jbrockmendel 4dbdfd7
Merge branch 'master' of https://github.com/pandas-dev/pandas into arith
jbrockmendel 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
There are no files selected for viewing
This file contains 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 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 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.
have a look thru test_ops, there is lots of coverage for things like this already (or maybe test_base). don't create a giant matrix, rather parametrize as much as possible.
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.
I'll take a look. After adding tests for #7996 (separate branch/PR), this class gets pretty huge. So yah, parameterization sounds nice.
(Also it looks like tests in this module don't get run, so that needs changing anyway).
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.
sure they do, classes inherit from this. Pls pls pls don't create a huge matrix of tests w/o looking thru the existing. we cover quite a bit of this already.
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.
Message received. Worrying about correctness first, brevity later.