-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
PERF: Series.fillna for pyarrow-backed dtypes #49722
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
Conversation
|
||
if method is not None and pa_version_under7p0: | ||
# fill_null_{forward|backward} added in pyarrow 7.0 | ||
fallback_performancewarning(version="7") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make sure these are being checked with tm.maybe_produces_warning
in the test suite (should show up in the pyarrow=6 build)? Ideally we want to catch all occurrences of these in this test suite
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added. thanks for the reviews
Looking good. Just a single comment |
A few other places where this is showing up otherwise LGTM
|
fixed, thx |
Thanks @lukemanley |
* ArrowExtensionArray.fillna perf * whatsnew * fixes * tighter try/excepts * cleanup * test for performance warning * test for performance warning
It turns out
It looks like the pattern might be to define |
I imagine |
That makes sense to me. Would want to make sure we're not hurting perf in non-arrow cases. |
doc/source/whatsnew/v2.0.0.rst
file if fixing a bug or adding a new feature.Perf improvement in
Series.fillna
for pyarrow-backed dtypes.