Skip to content

REF: use np.where instead of maybe_upcast_putmask in nanops #38130

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 1 commit into from
Nov 29, 2020

Conversation

jbrockmendel
Copy link
Member

This way we make at most one copy. Also we get rid of the only use of maybe_upcast_putmask that has fill_value of anything other than np.nan, so in a follow-up it can be simplified.

@jreback jreback added the Refactor Internal refactoring of code label Nov 29, 2020
@jreback jreback added this to the 1.2 milestone Nov 29, 2020
@jreback jreback merged commit d98b37d into pandas-dev:master Nov 29, 2020
@jreback
Copy link
Contributor

jreback commented Nov 29, 2020

great never like this maybe_upcast_putmask, was in place for older numpies.

@jbrockmendel
Copy link
Member Author

good because more of it is getting deleted soon

@jbrockmendel jbrockmendel deleted the cln-nanops-putmask branch November 29, 2020 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants