convert_booleans#
2026-03-11
19 min read time
- pylibhipdf.strings.convert.convert_booleans.from_booleans(Column booleans, Scalar true_string, Scalar false_string, Stream stream=None) Column#
Returns a new strings column converting the boolean values from the provided column into strings.
For details, see
cudf::strings::from_booleans().Parameters#
- booleansColumn
Boolean column to convert.
- true_stringScalar
String to use for true in the output column.
- false_stringScalar
String to use for false in the output column.
- streamStream | None
CUDA stream on which to perform the operation.
Returns#
- Column
New strings column.
- pylibhipdf.strings.convert.convert_booleans.to_booleans(Column input, Scalar true_string, Stream stream=None) Column#
Returns a new bool column by parsing boolean values from the strings in the provided strings column.
For details, see
cudf::strings::to_booleans().Parameters#
- inputColumn
Strings instance for this operation
- true_stringScalar
String to expect for true. Non-matching strings are false
- streamStream | None
CUDA stream on which to perform the operation.
Returns#
- Column
New bool column converted from strings.