-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
PERF: ArrowExtensionArray.to_numpy(dtype=object) #51227
PERF: ArrowExtensionArray.to_numpy(dtype=object) #51227
Conversation
dumb question: why isn't |
I believe there is a desire to maintain the raw dtype (even if wrapped in an object array) and use For instance, this converts int to float when nulls are present:
I'm not sure its required, but the current implementation aligns mostly with
|
Thanks @lukemanley |
Not totally sure, but looks like this is failing the ci on main. Any idea why? |
Ah darn. Should we revert this in the meantime? |
Probably a good idea, if we don't know how to fix |
Yeah locally reverting this change fixes the test failure |
doc/source/whatsnew/v2.0.0.rst
file if fixing a bug or adding a new feature.Perf improvement for
ArrowExtensionArray.to_numpy(dtype=object)
.(
dtype=object
is not uncommon, see discussion in #22791)Some examples where it has an impact: