-
Notifications
You must be signed in to change notification settings - Fork 912
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add strings.combine APIs to pylibcudf (#16790)
Contributes to #15162 Authors: - Matthew Roeschke (https://github.com/mroeschke) - Matthew Murray (https://github.com/Matt711) Approvers: - Lawrence Mitchell (https://github.com/wence-) - Matthew Murray (https://github.com/Matt711) URL: #16790
- Loading branch information
Showing
12 changed files
with
397 additions
and
111 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
docs/cudf/source/user_guide/api_docs/pylibcudf/strings/combine.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
======= | ||
combine | ||
======= | ||
|
||
.. automodule:: pylibcudf.strings.combine | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ strings | |
|
||
capitalize | ||
char_types | ||
combine | ||
contains | ||
extract | ||
find | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ from . cimport ( | |
capitalize, | ||
case, | ||
char_types, | ||
combine, | ||
contains, | ||
convert, | ||
extract, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
capitalize, | ||
case, | ||
char_types, | ||
combine, | ||
contains, | ||
convert, | ||
extract, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
from pylibcudf.column cimport Column | ||
from pylibcudf.libcudf.strings.combine cimport ( | ||
output_if_empty_list, | ||
separator_on_nulls, | ||
) | ||
from pylibcudf.scalar cimport Scalar | ||
from pylibcudf.table cimport Table | ||
|
||
ctypedef fused ColumnOrScalar: | ||
Column | ||
Scalar | ||
|
||
cpdef Column concatenate( | ||
Table strings_columns, | ||
ColumnOrScalar separator, | ||
Scalar narep=*, | ||
Scalar col_narep=*, | ||
separator_on_nulls separate_nulls=*, | ||
) | ||
|
||
cpdef Column join_strings(Column input, Scalar separator, Scalar narep) | ||
|
||
|
||
cpdef Column join_list_elements( | ||
Column source_strings, | ||
ColumnOrScalar separator, | ||
Scalar separator_narep, | ||
Scalar string_narep, | ||
separator_on_nulls separate_nulls, | ||
output_if_empty_list empty_list_policy, | ||
) |
Oops, something went wrong.