find#
- pylibcudf.strings.find.contains(signatures, args, kwargs, defaults, _fused_sigindex_ref=[None])#
Returns a column of boolean values for each string where true indicates the corresponding target string was found within that string in the provided column.
targetmay be aColumnor aScalar.If
targetis a scalar, the scalar will be searched for in each string. Iftargetis a column, the corresponding string in the column will be searched for in each string.For details, see
contains().- Parameters:
- inputColumn
The input strings
- targetUnion[Column, Scalar]
String to search for in each string
- Returns:
- pylibcudf.Column
New boolean column with True for each string that contains the target
- pylibcudf.strings.find.ends_with(signatures, args, kwargs, defaults, _fused_sigindex_ref=[None])#
Returns a column of boolean values for each string where true indicates the target string was found at the end of the string in the provided column.
targetmay be aColumnor aScalar.If
targetis a scalar, the scalar will be searched for in each string. Iftargetis a column, the corresponding string in the column will be searched for in each string.For details, see
ends_with().- Parameters:
- inputColumn
The input strings
- targetUnion[Column, Scalar]
String to search for at the end of each string
- Returns:
- pylibcudf.Column
New boolean column with True for each string that ends with the target
- pylibcudf.strings.find.find(signatures, args, kwargs, defaults, _fused_sigindex_ref=[None])#
Returns a column of character position values where the target string is first found in each string of the provided column.
targetmay be aColumnor aScalar.If
targetis a scalar, the scalar will be searched for in each string. Iftargetis a column, the corresponding string in the column will be searched for in each string.For details, see
find().- Parameters:
- inputColumn
The input strings
- targetUnion[Column, Scalar]
String to search for in each string
- startsize_type
First character position to include in the search
- stopsize_type
Last position (exclusive) to include in the search. Default of -1 will search to the end of the string.
- Returns:
- pylibcudf.Column
New integer column with character position values
- pylibcudf.strings.find.rfind(Column input, Scalar target, size_type start=0, size_type stop=-1) Column#
Returns a column of character position values where the target string is first found searching from the end of each string.
For details, see
rfind().- Parameters:
- inputColumn
The input strings
- targetScalar
String to search for in each string
- startsize_type
First character position to include in the search
- stopsize_type
Last position (exclusive) to include in the search. Default of -1 will search to the end of the string.
- Returns:
- pylibcudf.Column
New integer column with character position values
- pylibcudf.strings.find.starts_with(signatures, args, kwargs, defaults, _fused_sigindex_ref=[None])#
Returns a column of boolean values for each string where true indicates the target string was found at the beginning of the string in the provided column.
targetmay be aColumnor aScalar.If
targetis a scalar, the scalar will be searched for in each string. Iftargetis a column, the corresponding string in the column will be searched for in each string.For details, see
starts_with().- Parameters:
- inputColumn
The input strings
- targetUnion[Column, Scalar]
String to search for at the beginning of each string
- Returns:
- pylibcudf.Column
New boolean column with True for each string that starts with the target