-
Notifications
You must be signed in to change notification settings - Fork 886
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add string.convert.convert_integers APIs to pylibcudf
- Loading branch information
Showing
8 changed files
with
327 additions
and
71 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
from . cimport convert_datetime, convert_durations | ||
from . cimport convert_datetime, convert_durations, convert_integers |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
from . import convert_datetime, convert_durations | ||
from . import convert_datetime, convert_durations, convert_integers |
17 changes: 17 additions & 0 deletions
17
python/pylibcudf/pylibcudf/strings/convert/convert_integers.pxd
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,17 @@ | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
from pylibcudf.column cimport Column | ||
from pylibcudf.types cimport DataType | ||
|
||
|
||
cpdef Column to_integers(Column input, DataType output_type) | ||
|
||
cpdef Column from_integers(Column integers) | ||
|
||
cpdef Column is_integer(Column input, DataType int_type=*) | ||
|
||
cpdef Column hex_to_integers(Column input, DataType output_type) | ||
|
||
cpdef Column is_hex(Column input) | ||
|
||
cpdef Column integers_to_hex(Column input) |
Oops, something went wrong.