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 |
max-sixty
left a comment
There was a problem hiding this comment.
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.rstApparently
DataArrayinstances on the right-hand side ofVariable.__setitem__were being stripped of theirxarraymetadata, leading to the incorrect broadcasting noted in #7030. My proposed fix is to add an explicit if-clause for this case.