Skip to content

Commit

Permalink
Update python/cudf/cudf/core/tools/numeric.py
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Murray <[email protected]>
  • Loading branch information
mroeschke and Matt711 authored Dec 9, 2024
1 parent 4974bef commit 182f6d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/cudf/cudf/core/tools/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ def _convert_str_col(
if col.is_integer().all():
return col.astype(dtype=cudf.dtype("i8")) # type: ignore[return-value]

# TODO: This can be handled by libcudf in
# future see StringColumn.as_numerical_column
converted_col = (
col.to_lower()
.find_and_replace(as_column([""]), as_column(["NaN"]))
Expand Down

0 comments on commit 182f6d9

Please sign in to comment.