Skip to content

Commit

Permalink
Coerce to tuple first
Browse files Browse the repository at this point in the history
  • Loading branch information
shwina committed Mar 26, 2021
1 parent 797087b commit 5ad531f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/cudf/cudf/core/join/join.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,9 @@ def _sort_result(self, result: Frame) -> Frame:
# need a list instead of a tuple here because
# _get_sorted_inds calls down to ColumnAccessor.get_by_label
# which handles lists and tuples differently
sort_order = result._get_sorted_inds(list(self.on))
sort_order = result._get_sorted_inds(
list(_coerce_to_tuple(self.on))
)
return result._gather(sort_order, keep_index=False)
by = []
if self.left_index and self.right_index:
Expand Down

0 comments on commit 5ad531f

Please sign in to comment.