-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix assignment with .loc #8067
Fix assignment with .loc #8067
Conversation
Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient. |
I realized that I hadn't paid much attention to (By the way, I'm not sure what's happening with the Mypy CI checks, but I think it's not from this PR, because other recent PRs are also having the same failure.) |
I went ahead and added the test for |
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.
I had a look through this, it looks good. Thanks @dranjan
I've been away for a while so want to be conservative about merging things myself — I'll see if anyone else comments, otherwise let's merge?
(and sorry for the delay)
Awesome, I'm glad to see progress on this! Do you need anything more from me, like resolving that minor merge conflict? |
I fixed the merge conflict and will merge. (If anyone more informed disagrees, we can revert in the worst case.) Thank you very much @dranjan ! |
whats-new.rst
Apparently
DataArray
instances on the right-hand side ofVariable.__setitem__
were being stripped of theirxarray
metadata, leading to the incorrect broadcasting noted in #7030. My proposed fix is to add an explicit if-clause for this case.