Skip to content

REF: combine isnaobj+isnaobj_old #44505

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
Nov 20, 2021
Merged

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

or util.is_float_object(val) and (val == INF or val == NEGINF)
)
return result.view(np.bool_)
return isnaobj(arr, inf_as_na=True)
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to just call isnaobj(arr, inf_as_na=True) where isnaobj_old(arr) is called (same for isnaobj2d)?

Copy link
Member Author

Choose a reason for hiding this comment

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

it is, im planning to do that in a separate pass

@mroeschke mroeschke added Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Refactor Internal refactoring of code labels Nov 18, 2021
@jreback jreback added this to the 1.4 milestone Nov 20, 2021
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

should check perf in any case

return val != val
if val != val:
return True
if inf_as_na:
Copy link
Contributor

Choose a reason for hiding this comment

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

elif but doesn't matter much

@jreback jreback merged commit 19f0095 into pandas-dev:master Nov 20, 2021
@jbrockmendel jbrockmendel deleted the ref-missing branch November 20, 2021 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants