Skip to content

BUG: failure to cast all-int floating dtypes when setting into int dtypes #44316

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

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented Nov 4, 2021

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

Overlap with (but not rebased on top of) #44275

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

lgtm @phofl i fyou can have a look

@jreback
Copy link
Contributor

jreback commented Nov 5, 2021

user facing at all?

@jreback jreback added this to the 1.4 milestone Nov 5, 2021
@jreback jreback added Bug Dtype Conversions Unexpected or buggy dtype conversions Indexing Related to indexing on series/frames, not to indexes themselves labels Nov 5, 2021
@jbrockmendel
Copy link
Member Author

user facing at all?

yes, just updated with whatsnew

@@ -1096,9 +1096,26 @@ def __setitem__(self, key, value) -> None:
if com.is_bool_indexer(key):
key = check_bool_indexer(self.index, key)
key = np.asarray(key, dtype=bool)

Copy link
Member

Choose a reason for hiding this comment

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

This is from #44275?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes (mentioned in OP)

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, thx. Was a bit confused why I could not see that master was updated here

@phofl
Copy link
Member

phofl commented Nov 5, 2021

small comment, otherwise lgtm

Copy link
Member

@phofl phofl left a comment

Choose a reason for hiding this comment

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

Lgtm

@phofl phofl merged commit d88d27c into pandas-dev:master Nov 5, 2021
@phofl
Copy link
Member

phofl commented Nov 5, 2021

Thx @jbrockmendel

@jbrockmendel jbrockmendel deleted the bug-can_hold_element-floatints branch November 5, 2021 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants