Skip to content
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

Enable binops between Decimal and Integer columns #7859

Open
wants to merge 14 commits into
base: branch-21.08
Choose a base branch
from

Conversation

brandon-b-miller
Copy link
Contributor

Closes #7680

@brandon-b-miller brandon-b-miller requested a review from a team as a code owner April 5, 2021 20:27
@github-actions github-actions bot added the Python Affects Python cuDF API. label Apr 5, 2021
@brandon-b-miller brandon-b-miller added 3 - Ready for Review Ready for review by team feature request New feature or request non-breaking Non-breaking change labels Apr 5, 2021
@@ -62,7 +62,46 @@ def to_arrow(self):
buffers=[mask_buf, data_buf],
)

def _from_integer_column(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why DecimalColumn._from_integer_column instead of NumericalColumn.as_decimal_column, which is already defined?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, you're right about this. Updating.

@@ -218,6 +219,36 @@ def as_timedelta_column(
),
)

def _decimal_dtype(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems more suitable to go to utils/dtypes.py, and naming should be decimal_dtype_from_numerical?

lhs, rhs = rhs, lhs

# result will be float, not decimal for these binops
breakpoint()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stale breakpoint?

Comment on lines +1280 to +1284
def decimal_series(input, dtype):
return cudf.Series(
[x if x is None else decimal.Decimal(x) for x in input],
dtype=dtype,
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be replaced by _decimal_series

@galipremsagar galipremsagar changed the base branch from branch-21.06 to branch-21.08 June 14, 2021 15:13
@galipremsagar
Copy link
Contributor

Retargeted to 21.08

@harrism
Copy link
Member

harrism commented Jul 20, 2021

Does this need to be moved to 21.10?

@galipremsagar
Copy link
Contributor

@brandon-b-miller is this PR ready for review?

@brandon-b-miller
Copy link
Contributor Author

No - there's a conceptual issue that needs to be resolved before we can move forward - see issue for details.

@galipremsagar
Copy link
Contributor

No - there's a conceptual issue that needs to be resolved before we can move forward - see issue for details.

Thanks Brandon!

@galipremsagar galipremsagar added 2 - In Progress Currently a work in progress and removed 3 - Ready for Review Ready for review by team labels Aug 11, 2021
@github-actions
Copy link

github-actions bot commented Feb 7, 2022

This PR has been labeled inactive-90d due to no recent activity in the past 90 days. Please close this PR if it is no longer required. Otherwise, please respond with a comment indicating any updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 - In Progress Currently a work in progress feature request New feature or request non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEA] Mixed precision Decimal math support in cudf Python
5 participants