Skip to content

Commit

Permalink
FIX-modin-project#2374: fix setitem
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev committed Dec 3, 2020
1 parent b881a25 commit 0a5000a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion modin/engines/base/frame/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1729,7 +1729,10 @@ def _copartition(
)

index_other_obj = [o.axes[axis] for o in other]
joined_index = self._join_index_objects(axis, index_other_obj, how, sort)
if how == "reindex_to_self":
joined_index = self.axes[axis]
else:
joined_index = self._join_index_objects(axis, index_other_obj, how, sort)

# We have to set these because otherwise when we perform the functions it may
# end up serializing this entire object.
Expand Down
2 changes: 1 addition & 1 deletion modin/pandas/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1975,7 +1975,7 @@ def __setitem__(self, key, value):
self._query_compiler.concat(
1,
value._query_compiler,
join="left",
join="reindex_to_self",
),
inplace=True,
)
Expand Down

0 comments on commit 0a5000a

Please sign in to comment.