extract#

pylibcudf.strings.extract.extract(Column input, RegexProgram prog) Table#

Returns a table of strings columns where each column corresponds to the matching group specified in the given egex_program object.

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

Parameters:
inputColumn

Strings instance for this operation

progRegexProgram

Regex program instance

Returns:
Table

Columns of strings extracted from the input column.

pylibcudf.strings.extract.extract_all_record(Column input, RegexProgram prog) Column#

Returns a lists column of strings where each string column row corresponds to the matching group specified in the given regex_program object.

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

Parameters:
inputColumn

Strings instance for this operation

progRegexProgram

Regex program instance

Returns:
Column

Lists column containing strings extracted from the input column

pylibcudf.strings.extract.extract_single(Column input, RegexProgram prog, size_type group) Column#

Returns a column of strings where each string corresponds to the matching group specified in the given regex_program object.

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

Parameters:
inputColumn

Strings instance for this operation

progRegexProgram

Regex program instance

groupsize_type

Index of the group number to extract

Returns:
Column

Column of strings extracted from the input column