Skip to content

Commit

Permalink
Fix typo bug in Index._intersection
Browse files Browse the repository at this point in the history
I think this was always supposed to be checking for set membership,
not equality.
  • Loading branch information
wence- committed Nov 27, 2024
1 parent e9eaf33 commit b2cfb9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cudf/cudf/core/_base_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,7 @@ def _intersection(self, other, sort=None):
._data
)

if sort is {None, True} and len(other):
if sort in {None, True} and len(other):
return intersection_result.sort_values()
return intersection_result

Expand Down

0 comments on commit b2cfb9c

Please sign in to comment.