diff --git a/python/cudf/cudf/core/_base_index.py b/python/cudf/cudf/core/_base_index.py index a6abd63d042..dfa3ef0df92 100644 --- a/python/cudf/cudf/core/_base_index.py +++ b/python/cudf/cudf/core/_base_index.py @@ -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