-
Notifications
You must be signed in to change notification settings - Fork 960
Remove cudf.Scalar from .dt timedelta properties #17863
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
Remove cudf.Scalar from .dt timedelta properties #17863
Conversation
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.
Thanks for simplifying this code!
@@ -484,88 +484,57 @@ def components(self) -> dict[str, ColumnBase]: | |||
4 37 13 12 14 234 0 0 | |||
""" | |||
|
|||
@functools.cache | |||
def get_unit_conversion(reso: str) -> np.timedelta64: |
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.
It seems like we can reuse this function throughout this module.
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.
Good idea. Was able to move this to the top level of this file
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.
Thanks, looks great! Should we re-target to 25.04?
Sure thing. This PR isn't a priority so don't want to consume merge CI time |
/merge |
Description
Towards #17843
Checklist