Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
__setitem__
on string columns when the scalar value ends in a n…
…ull byte (#12991) Since numpy strings are fixed width and use a null byte as an indicator of the end of the string, there is no way to distinguish between numpy.str_("abc\x00").item() and numpy.str_("abc").item(). This has consequences for scalar preprocessing we do when constructing a cudf.Scalar, since that usually goes through numpy.astype(...).item(). So, when preprocessing as scalar, if we notice it is a string with trailing null bytes, keep it as is. Closes #12990. Authors: - Lawrence Mitchell (https://github.com/wence-) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) URL: #12991
- Loading branch information