Skip to content

simple assignment gives MergeError #6023

Answered by jklymak
jklymak asked this question in Q&A
Discussion options

You must be logged in to vote

OK, I take it back, I guess the simple assignment never worked, or at least not as far back as I'd care to check (0.10.3).

I guess I understand why this happens - xarray doesn't know if I want dat['thedata'] to be a new variable or to fill the old one. However, I'm not sure what harm would be done by letting the assignment work without indexing if the alternative is a failed merge.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by max-sixty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant