-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
BUG: failure to cast all-int floating dtypes when setting into int dtypes #44316
Conversation
There was a problem hiding this 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
user facing at all? |
yes, just updated with whatsnew |
pandas/core/series.py
Outdated
@@ -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) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is from #44275?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes (mentioned in OP)
There was a problem hiding this comment.
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
small comment, otherwise lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Thx @jbrockmendel |
Overlap with (but not rebased on top of) #44275