-
-
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: Very slow clip performance #15400
Comments
I wondered where this huge difference came from. Not that I want to say that this big difference is not a problem, but this seems a consequence of its implemention / several slower functions that are used under the hood.
So it seems that several individual steps in the current implementation (creation of the mask, the alignment, ..) already take way longer than the actual When you look at a larger series, the difference is not that huge anymore:
|
Profile results of 100 runs
A single call to |
closes pandas-dev#15400 (cherry picked from commit 42e2a87)
Code Sample, a copy-pastable example if possible
Problem description
There is more than 1000x performance difference between
Series.clip
andnumpy.clip
:Output of
pd.show_versions()
pandas 0.19.2
The text was updated successfully, but these errors were encountered: