contains#
2026-03-11
20 min read time
- pylibhipdf.strings.contains.contains_re(Column input, RegexProgram prog, Stream stream=None) 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
- pylibhipdf.strings.contains.count_re(Column input, RegexProgram prog, Stream stream=None) 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
- pylibhipdf.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
- pylibhipdf.strings.contains.matches_re(Column input, RegexProgram prog, Stream stream=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
cudf::strings::matches_re().Parameters#
- inputColumn
The input strings
- progRegexProgram
Regex program instance
Returns#
- pylibcudf.Column
New column of boolean results for each string