Skip to content

PERF: call np.errstate less #52366

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

Merged
merged 3 commits into from
Apr 3, 2023
Merged

Conversation

jbrockmendel
Copy link
Member

These add a surprising amount of overhead.

Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So now float point errors from numpy will warn correct?

@mroeschke mroeschke added Performance Memory or execution speed performance Warnings Warnings that appear or should be added to pandas labels Apr 3, 2023
@jbrockmendel
Copy link
Member Author

So now float point errors from numpy will warn correct?

This only removes np.errstate in places where doing so didn't produce any new warnings in the tests.

@mroeschke mroeschke added this to the 2.1 milestone Apr 3, 2023
@mroeschke mroeschke merged commit 5555c51 into pandas-dev:main Apr 3, 2023
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the perf-errstate branch April 3, 2023 17:52
topper-123 pushed a commit to topper-123/pandas that referenced this pull request Apr 6, 2023
* PERF: use np.errstate less

* PERF: less np.errstate

* less np.errstate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance Memory or execution speed performance Warnings Warnings that appear or should be added to pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants