NVIDIA / NVIDIA/cudf

[FEA] Add support for cudf.Timedelta scalar support

Open
#5,882 2 comments 1 reaction 0 assignees View on GitHub
feature request Python
Dominant language
C++
Stars
9.8k
Forks
1.1k
Avg merge
3d 6m
Merged PRs (30d)
278

Description

**Is your feature request related to a problem? Please describe.**
This is a Feature request for `cudf.Timedelta` similar to `pd.Timedelta` scalar duration type.

**Describe the solution you'd like**
`cudf.Timedelta` can be a wrapper on `Scalar(dtype='np.timedelta64')` object.

**Additional context**
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Timedelta.html
https://github.com/rapidsai/cudf/pull/5781

Contributor guide

Open the contributing guide

Research direction

Start with the existing Scalar(dtype='np.timedelta64') entry point and compare the requested API with pandas.Timedelta using the linked pandas reference and PR 5781. Determine the supported cudf.Timedelta scalar behavior and integration points; done means cudf exposes a working Timedelta scalar with behavior consistent with the requested pandas-like duration type.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.