[FEA] Support strict=False
casting in cudf-polars
#17244
Labels
cudf.polars
Issues specific to cudf.polars
feature request
New feature or request
Python
Affects Python cuDF API.
PR #17076 implements casting between strings and numeric values using the polars GPU backend. However polars optionally supports the
strict
kwarg when casting between types which nulls out data that can't be converted from one type to the other. We should be able to implement this as a scan of the data to produce a mask that we then use to scatterNA
. For instance, we could check which strings correspond to integers using libcudf'sis_integer
method and produce a mask that way. This should be relevant for:The text was updated successfully, but these errors were encountered: