-
Notifications
You must be signed in to change notification settings - Fork 665
FIX-#2857: Correctly handle identical index binary operations #2862
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
Conversation
…tions Resolves modin-project#2857 Signed-off-by: Devin Petersohn <devin.petersohn@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #2862 +/- ##
===========================================
- Coverage 82.34% 68.95% -13.39%
===========================================
Files 132 132
Lines 14480 14508 +28
===========================================
- Hits 11923 10004 -1919
- Misses 2557 4504 +1947
Continue to review full report at Codecov.
|
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.
Left some comments for clarification.
@@ -1783,8 +1783,6 @@ def get_axis_lengths(partitions, axis): | |||
return self._partitions, [o._partitions for o in other], joined_index | |||
|
|||
base_frame_idx = non_empty_frames_idx[0] |
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.
Why do we define this variable if we only use it in line 1786? Why not use it in line 1789 as well?
There was a problem hiding this comment.
The code quality in this helper method is in need of some TLC, I do not disagree. Let's put that later.
@@ -973,7 +973,7 @@ def merge(left_index, right_index): | |||
return left_index.join(right_index, how=how, sort=sort) | |||
|
|||
# define condition for joining indexes | |||
all_indices_equal = all(indexes[0].equals(index) for index in [indexes[1:]]) | |||
all_indices_equal = all(indexes[0].equals(index) for index in indexes[1:]) |
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'm not sure I understand what these changes do - before were we making a 2D list with one row that contains indices, but now we're just looping through the list of indices?
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.
Yes, it was a bug. Deleting these two characters fixes the case in the issue.
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.
Looks good to me!
Resolves #2857
Signed-off-by: Devin Petersohn devin.petersohn@gmail.com
What do these changes do?
flake8 modin
black --check modin
git commit -s