char_types#

pylibcudf.strings.char_types.all_characters_of_type(Column source_strings, string_character_types types, string_character_types verify_types) Column#

Identifies strings where all characters match the specified type.

Parameters:
source_stringsColumn

Strings instance for this operation

typesStringCharacterTypes

The character types to check in each string

verify_typesStringCharacterTypes

Only verify against these character types.

Returns:
Column

New column of boolean results for each string

pylibcudf.strings.char_types.filter_characters_of_type(Column source_strings, string_character_types types_to_remove, Scalar replacement, string_character_types types_to_keep) Column#

Filter specific character types from a column of strings.

Parameters:
source_stringsColumn

Strings instance for this operation

types_to_removeStringCharacterTypes

The character types to check in each string.

replacementScalar

The replacement character to use when removing characters

types_to_keepStringCharacterTypes

Default ALL_TYPES means all characters of types_to_remove will be filtered.

Returns:
Column

New column with the specified characters filtered out and replaced with the specified replacement string.