Skip to content

Commit

Permalink
update to all float types
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Mar 1, 2021
1 parent f203cb2 commit 30ca48a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cudf/cudf/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ def scatter_by_map(
map_index = as_column(map_index)

# Convert float to integer
if map_index.dtype == float:
if map_index.dtype.kind == "f":
map_index = map_index.astype(np.int32)

# Convert string or categorical to integer
Expand Down

0 comments on commit 30ca48a

Please sign in to comment.