Skip to content

BUG: pandas.options.mode.use_inf_as_na disables NA checking for StringArray #33655

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

Closed
dsaxton opened this issue Apr 19, 2020 · 0 comments · Fixed by #33656
Closed

BUG: pandas.options.mode.use_inf_as_na disables NA checking for StringArray #33655

dsaxton opened this issue Apr 19, 2020 · 0 comments · Fixed by #33656
Labels
Bug NA - MaskedArrays Related to pd.NA and nullable extension arrays
Milestone

Comments

@dsaxton
Copy link
Member

dsaxton commented Apr 19, 2020

1.0.3 or master:

import pandas as pd

pd.options.mode.use_inf_as_na = True
arr = pd.array(["a", "b", None])
arr.isna()
# array([False, False, False])

Setting use_inf_as_na to True breaks isna for StringArray as shown above; it seems to work fine for other ExtensionArrays I checked (IntegerArray, BooleanArray).

@dsaxton dsaxton added Bug Needs Triage Issue that has not been reviewed by a pandas team member NA - MaskedArrays Related to pd.NA and nullable extension arrays and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Apr 19, 2020
@jreback jreback added this to the 1.1 milestone May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug NA - MaskedArrays Related to pd.NA and nullable extension arrays
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants