-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Tests for TDI issues already fixed #19044
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
Merged
Changes from 7 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1cd1399
Tests for TDI issues already fixed
jbrockmendel 4d2333f
implement xfail test for index classes that dont defer to Series corr…
jbrockmendel 3b02815
flake8 fixup
jbrockmendel 0cd06e4
Suggested edits
jbrockmendel 24062d0
Merge branch 'master' of https://github.com/pandas-dev/pandas into fi…
jbrockmendel d6a5752
requested edits, un-fix __mul__
jbrockmendel bf09444
weaken tests for un-fixed methods
jbrockmendel 57f794b
Merge branch 'master' of https://github.com/pandas-dev/pandas into fi…
jbrockmendel 6f7e5b2
requested edits
jbrockmendel 10296e8
Merge branch 'master' of https://github.com/pandas-dev/pandas into fi…
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -597,7 +597,15 @@ def _align_method_SERIES(left, right, align_asobject=False): | |
|
||
|
||
def _construct_result(left, result, index, name, dtype): | ||
return left._constructor(result, index=index, name=name, dtype=dtype) | ||
""" | ||
If the raw op result has a non-None name (e.g. it is an Index object) and | ||
the name argument is None, then passing name to the constructor will | ||
not be enough; we still need to override the name attribute. | ||
""" | ||
out = left._constructor(result, index=index, name=name, dtype=dtype) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let's just not pass the name at all to the constructor then (and just set as you are doing) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good. |
||
|
||
out.name = name | ||
return out | ||
|
||
|
||
def _construct_divmod_result(left, result, index, name, dtype): | ||
|
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.
you crossed this out is that correct?
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.
The original PR fixed both
TimedeltaIndex.__mul__
andTimedeltaIndex.__div__
. Then we narrowed the scope so it only fixed__div__
.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.
ok, so is that issue closed by this PR? (you cross it out i the header of the PR)
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.
Correct, #19042 is not fully closed by this PR.
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.
ok, let's close #19042 with this, and pls create a new issue for the residual. (and ref this PR)