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

BUG: Series.mask with small int dtypes raising #45750

Merged
merged 4 commits into from Feb 1, 2022

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented Feb 1, 2022

  • closes #xxxx (Replace xxxx with the Github issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

@jreback jreback added this to the 1.5 milestone Feb 1, 2022
@jreback jreback added Bug Indexing Related to indexing on series/frames, not to indexes themselves labels Feb 1, 2022
@jreback
Copy link
Contributor

jreback commented Feb 1, 2022

can you add a whatsnew here

tm.assert_series_equal(ser2, expected)

# FIXME: don't leave commented-out
# FIXME: ser.where(~mask, alt) unnecessarily upcasts to int64
Copy link
Member

Choose a reason for hiding this comment

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

Should this be an xfail?

Copy link
Member Author

Choose a reason for hiding this comment

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

probably. i didnt want to make it a separate test bc im planning/hoping to move the whole thing into a SetitemCastingEquivalents subclass

Copy link
Member

Choose a reason for hiding this comment

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

Okay fine as is then

@jbrockmendel
Copy link
Member Author

can you add a whatsnew here

whatsnew added + green

@jreback jreback merged commit 3875231 into pandas-dev:main Feb 1, 2022
@jbrockmendel jbrockmendel deleted the ref-putmask_smart branch February 1, 2022 22:46
phofl pushed a commit to phofl/pandas that referenced this pull request Feb 14, 2022
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants