Skip to content

CLN: simplify mask_missing #38127

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 28, 2020
Merged

Conversation

jbrockmendel
Copy link
Member

No description provided.

# When called from Block.replace/replace_list, values_to_mask is a scalar
# known to be holdable by arr.
# When called from Series._single_replace, values_to_mask is tuple or list
dtype, values_to_mask = infer_dtype_from_array(values_to_mask)
Copy link
Contributor

Choose a reason for hiding this comment

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

ok, this is very confusing and ought to simplify and tighten up the signature here (to make it consistently called), but clearly for a followon.

@jreback jreback added Clean Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate labels Nov 28, 2020
@jreback jreback added this to the 1.2 milestone Nov 28, 2020
@jreback jreback merged commit 2d661a8 into pandas-dev:master Nov 28, 2020
@jbrockmendel jbrockmendel deleted the ref-mask_missing branch November 28, 2020 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants