convert_booleans#
- pylibcudf.strings.convert.convert_booleans.from_booleans(Column booleans, Scalar true_string, Scalar false_string) 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.
- Returns:
- Column
New strings column.
- pylibcudf.strings.convert.convert_booleans.to_booleans(Column input, Scalar true_string) 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
- Returns:
- Column
New bool column converted from strings.