Skip to content

Conversation

@jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented Jun 29, 2019

if mask.any():
res2[mask] = np.nan
return res1, res2

Copy link
Contributor

Choose a reason for hiding this comment

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

if you do thi brlow line 546 you may not need to duplicate code

Copy link
Member Author

Choose a reason for hiding this comment

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

i think it ends up being a wash because we have to do these checks in multiple places

Copy link
Contributor

Choose a reason for hiding this comment

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

the style of this change is not consistent with the rest of the function, it could be better integrated, for example a helper function would go a long way here.

@jbrockmendel
Copy link
Member Author

@TomAugspurger I'm running into issues in this branch calling np.putmask on a SparseArray. Is there an alternative for that?

@jreback
Copy link
Contributor

jreback commented Jul 5, 2019

merge master here

@jbrockmendel
Copy link
Member Author

merge master here

Still troubleshooting SparseArray and IntegerArray failures locally.

@jbrockmendel
Copy link
Member Author

Closing in favor of #27239; SparseArray putmask needs to be figured out before this branch can go anywhere.

@jbrockmendel jbrockmendel deleted the fill_zeros_divmod branch April 5, 2020 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AttributeError with divmod(Series, Series) with 0 in the denominator

2 participants