-
Notifications
You must be signed in to change notification settings - Fork 906
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
Warn when downscaling decimal columns #8492
Warn when downscaling decimal columns #8492
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-21.08 #8492 +/- ##
===============================================
Coverage ? 82.95%
===============================================
Files ? 110
Lines ? 18184
Branches ? 0
===============================================
Hits ? 15085
Misses ? 3099
Partials ? 0 Continue to review full report at Codecov.
|
@@ -146,6 +147,16 @@ def _decimal_quantile( | |||
def as_decimal_column( | |||
self, dtype: Dtype, **kwargs | |||
) -> "cudf.core.column.DecimalColumn": | |||
if ( | |||
isinstance(dtype, Decimal64Dtype) | |||
and isinstance(self.dtype, Decimal64Dtype) |
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.
Can we avoid this check, given. self
is a DecimalColumn
?
@gpucibot merge |
Any reason this never got merged? |
@gpucibot merge |
Closes #8484