[FEA] Implement `cudf.date/timedelta/interval_range` by just calling the corresponding pandas functions
- 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.**
#19894 generally describes the current complexity of cudf constructors more-or-less reinventing pandas' complex constructor logic and a proposal to just call pandas constructors and convert the result to cudf. The rub is that cudf constructors can accept more inputs than pandas constructors, e.g. GPU objects, so it's not immediately straightforward.
`date_range`, `timedelta_range` (doesn't exist yet), and `interval_range` only accept scalar like arguments though and are primed to just delegate to pandas and convert the pandas result
**Describe the solution you'd like**
Define the function as:
```python
def *_range(...):
pd_result = pd.*_range(...)
return cudf.Index(pd_result)
```
**Describe alternatives you've considered**
Status-quo - these functions should continue to reimplement similar logic to pandas. There's a performance argument that our implementations avoid materializing the data on the CPU and transferring the result to GPU.
Contributor guide
Assessment
This issue has not been assessed yet.