-
Notifications
You must be signed in to change notification settings - Fork 915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cython for converting strings/fixed-point functions #7429
Add cython for converting strings/fixed-point functions #7429
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-0.19 #7429 +/- ##
===============================================
+ Coverage 81.80% 82.27% +0.46%
===============================================
Files 101 101
Lines 16695 17261 +566
===============================================
+ Hits 13658 14202 +544
- Misses 3037 3059 +22
Continue to review full report at Codecov.
|
got = gs.astype(cudf.Decimal64Dtype(scale=-2, precision=5)) | ||
assert_eq(fp, got) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codereport For input on pytest test cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, but can we keep the hierarchy of cython functions similar to the cpp counterparts? Like place from_decimal
and to_decimal
in a new file cudf/_lib/strings/convert/convert_fixed_point.pyx
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks, David!
rerun tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests look fine, we test pretty rigorously on the C++ side.
@gpucibot merge |
Reference rapidsai#7285 This PR adds Cython wrappers for `cudf::strings::to_fixed_point`, `cudf::strings::from_fixed_point`, and `cudf::strings::is_fixed_point` libcudf functions. Authors: - David (@davidwendt) Approvers: - GALI PREM SAGAR (@galipremsagar) - Ashwin Srinath (@shwina) - Conor Hoekstra (@codereport) URL: rapidsai#7429
Reference #7285
This PR adds Cython wrappers for
cudf::strings::to_fixed_point
,cudf::strings::from_fixed_point
, andcudf::strings::is_fixed_point
libcudf functions.