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

[FEA] Supporting timedelta64 dtypes for ceil/floor operations #9561

Open
mayankanand007 opened this issue Oct 29, 2021 · 2 comments
Open

[FEA] Supporting timedelta64 dtypes for ceil/floor operations #9561

mayankanand007 opened this issue Oct 29, 2021 · 2 comments
Labels
feature request New feature or request libcudf Affects libcudf (C++/CUDA) code. Python Affects Python cuDF API.

Comments

@mayankanand007
Copy link
Contributor

mayankanand007 commented Oct 29, 2021

Is your feature request related to a problem? Please describe.
This issue is created as a follow-up to #9571 and #9554 where we add support for ceil/floor operations for datetime64[ns] data type. In this case, we would like additional support for timedelta64[ns] types as well.

Describe the solution you'd like

import cudf
tdIndex = cudf.TimedeltaIndex(data =['4 day 8h 20min 35us 45ns', '+17:42:19.999999',
'9 day 3h 08:16:02.000055', '+22:35:25.000075'])
tdIndex.ceil(freq='T'))

Output:

TimedeltaIndex(['4 days 08:21:00', '0 days 17:43:00', '9 days 11:17:00',
'0 days 22:36:00'],
dtype='timedelta64[ns]', freq=None)

Additional context
Similar to how pandas supports it

@mayankanand007 mayankanand007 added feature request New feature or request Needs Triage Need team to review and classify labels Oct 29, 2021
@mayankanand007 mayankanand007 added libcudf Affects libcudf (C++/CUDA) code. Python Affects Python cuDF API. labels Oct 29, 2021
@galipremsagar galipremsagar changed the title [FEA] Supporting TimedeltaIndex for ceil/floor operations [FEA] Supporting timedelta64 dtypes for ceil/floor operations Oct 29, 2021
@mayankanand007 mayankanand007 changed the title [FEA] Supporting timedelta64 dtypes for ceil/floor operations [FEA] Supporting timedelta64 dtypes for ceil/floor/round operations Nov 10, 2021
@mayankanand007 mayankanand007 changed the title [FEA] Supporting timedelta64 dtypes for ceil/floor/round operations [FEA] Supporting timedelta64 dtypes for ceil/floor operations Nov 11, 2021
@beckernick beckernick removed the Needs Triage Need team to review and classify label Nov 12, 2021
@github-actions
Copy link

This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.

@github-actions
Copy link

This issue has been labeled inactive-90d due to no recent activity in the past 90 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request libcudf Affects libcudf (C++/CUDA) code. Python Affects Python cuDF API.
Projects
Status: Todo
Development

No branches or pull requests

4 participants