contains#

pylibcudf.strings.contains.contains_re(Column input, RegexProgram prog) Column#

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

For details, see cudf::strings::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) Column#

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

For details, see cudf::strings::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(signatures, args, kwargs, defaults, _fused_sigindex={})#

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

For details, see cudf::strings::like().

Parameters:
inputColumn

The input strings

patternColumn or Scalar

Like patterns to match within each string

escape_characterScalar

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) Column#

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

For details, see cudf::strings::matches_re().

Parameters:
inputColumn

The input strings

progRegexProgram

Regex program instance

Returns:
pylibcudf.Column

New column of boolean results for each string