contains#

pylibcudf.strings.contains.contains_re(Column input, RegexProgram prog, Stream stream=None, DeviceMemoryResource mr=None) Column#

Returns a boolean column identifying rows which match the given regex_program object.

For details, see contains_re().

Parameters:
inputColumn

The input strings

progRegexProgram

Regex program instance

Returns:
pylibcudf.Column

New column of boolean results for each string

pylibcudf.strings.contains.count_re(Column input, RegexProgram prog, Stream stream=None, DeviceMemoryResource mr=None) Column#

Returns the number of times the given regex_program’s pattern matches in each string.

For details, see count_re().

Parameters:
inputColumn

The input strings

progRegexProgram

Regex program instance

Returns:
pylibcudf.Column

New column of match counts for each string

pylibcudf.strings.contains.like(Column input, str pattern, str escape_character=None, Stream stream=None, DeviceMemoryResource mr=None) Column#

Returns a boolean column identifying rows which match the given like pattern.

For details, see like().

Parameters:
inputColumn

The input strings

patternstr

Like pattern to match within each string

escape_characterstr

Optional character specifies the escape prefix. Default is no escape character.

Returns:
pylibcudf.Column

New column of boolean results for each string

pylibcudf.strings.contains.matches_re(Column input, RegexProgram prog, Stream stream=None, DeviceMemoryResource mr=None) Column#

Returns a boolean column identifying rows which matching the given regex_program object but only at the beginning the string.

For details, see matches_re().

Parameters:
inputColumn

The input strings

progRegexProgram

Regex program instance

Returns:
pylibcudf.Column

New column of boolean results for each string