NVIDIA / NVIDIA/cudf

[FEA] Support for builtin operators in `apply` functions

Open
#13,462 0 comments 0 reactions 1 assignee Claimed by @brandon-b-miller View on GitHub
feature request numba Python
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.