Skip to content

ENH: Support masked ExtensionTypes when using engine="numba" #48447

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

Open
mroeschke opened this issue Sep 7, 2022 · 0 comments
Open

ENH: Support masked ExtensionTypes when using engine="numba" #48447

mroeschke opened this issue Sep 7, 2022 · 0 comments
Labels
Enhancement NA - MaskedArrays Related to pd.NA and nullable extension arrays numba numba-accelerated operations

Comments

@mroeschke
Copy link
Member

Currently any engine="numba" operation is only compatible with numpy dtypes as numba does not natively understand pandas ExtensionDtypes. To achieve this, pandas could

  1. Always convert to the equivalent numpy dtype, but operations with NA would likely need more logic.
  2. Register the types with numba? https://numba.pydata.org/numba-doc/latest/extending/low-level.html#typing
@mroeschke mroeschke added Enhancement NA - MaskedArrays Related to pd.NA and nullable extension arrays numba numba-accelerated operations labels Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement NA - MaskedArrays Related to pd.NA and nullable extension arrays numba numba-accelerated operations
Projects
None yet
Development

No branches or pull requests

1 participant