Skip to content

QST: Zero copy access to the mask of a nullable array #35089

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
2 tasks
brandon-b-miller opened this issue Jul 1, 2020 · 1 comment
Closed
2 tasks

QST: Zero copy access to the mask of a nullable array #35089

brandon-b-miller opened this issue Jul 1, 2020 · 1 comment
Labels
Duplicate Report Duplicate issue or pull request Usage Question

Comments

@brandon-b-miller
Copy link

  • I have searched the [pandas] tag on StackOverflow for similar questions.

  • I have asked my usage related question on StackOverflow.


Question about pandas

Hello Pandas devs,
I was wondering what's the best zero-copy way to access the mask of a nullable array, say a StringArray for example. I noticed these all inherit from BaseMaskedArray which provides isna() wrapping _mask however I want to make sure this is the recommended method, if I can always be sure this doesn't incur a copy, etc. Should I be using isna() or something else, if it exists?

@brandon-b-miller brandon-b-miller added Needs Triage Issue that has not been reviewed by a pandas team member Usage Question labels Jul 1, 2020
@TomAugspurger
Copy link
Contributor

See #34873.

And FYI StringArray doesn't use a mask currently. It's NA values are stored inline.

@TomAugspurger TomAugspurger added the Duplicate Report Duplicate issue or pull request label Jul 1, 2020
@bashtage bashtage removed the Needs Triage Issue that has not been reviewed by a pandas team member label Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request Usage Question
Projects
None yet
Development

No branches or pull requests

3 participants