Skip to content
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

REF: implement sanitize_masked_array #38398

Merged
merged 2 commits into from
Dec 11, 2020

Conversation

jbrockmendel
Copy link
Member

The recarray handling in internals.construction is inconsistent with the other recarray handling. Hopefully I can get that sorted out and then we can re-use sanitize_masked_array there too.

data.soften_mask() # set hardmask False if it was True
data[mask] = fill_value
else:
data = data.copy()
Copy link
Member Author

Choose a reason for hiding this comment

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

removing this copy does not break any tests, not clear why it is needed

@jreback jreback added Constructors Series/DataFrame/Index/pd.array Constructors Refactor Internal refactoring of code labels Dec 11, 2020
@jreback jreback added this to the 1.3 milestone Dec 11, 2020
@jreback jreback merged commit e47dbdf into pandas-dev:master Dec 11, 2020
@jbrockmendel jbrockmendel deleted the ref-construction branch December 11, 2020 23:08
luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Constructors Series/DataFrame/Index/pd.array Constructors Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants