Skip to content

Commit

Permalink
Resolve hash_columns FutureWarning in dask_cudf
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Oct 20, 2021
1 parent bb98505 commit 08ea647
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions python/dask_cudf/dask_cudf/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,7 @@ def union_categoricals_cudf(


def safe_hash(frame):
index = frame.index
if isinstance(frame, cudf.DataFrame):
return cudf.Series(frame.hash_columns(), index=index)
else:
return cudf.Series(frame.hash_values(), index=index)
return cudf.Series(frame.hash_values(), index=frame.index)


@hash_object_dispatch.register((cudf.DataFrame, cudf.Series))
Expand Down

0 comments on commit 08ea647

Please sign in to comment.