[FEA] Support for builtin operators in `apply` functions
- Dominant language
- C++
- Stars
- 9.8k
- Forks
- 1.1k
- Avg merge
- 3d 6m
- Merged PRs (30d)
- 278
Description
Recently we started work to add the `abs` operator to `apply`, in https://github.com/rapidsai/cudf/pull/13408. Previously we added several more built-in casting operators such as `float`, `int` and `bool`, in https://github.com/rapidsai/cudf/pull/11578. We should investigate adding anything else we conceivable _can_. From the list in [python's docs](https://docs.python.org/3/library/functions.html#abs), considering the numeric and string dtypes we currently support, I expect we can add the following operators:
- `bin`
- `chr`
- `divmod`
- `hash`
- `hex`
- `oct`
- `ord`
- `pow`
- `round`
- `str`
In addition, the following may be implemented once we have some kind of sensible list, tuple, and iterable types:
- `all`, for supported iterables
- `any`, for supported iterables
- `list`
- `range`
- `slice`
- `sum`
- `tuple`
Contributor guide
Assessment
This issue has not been assessed yet.