html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/4393#issuecomment-683980088,https://api.github.com/repos/pydata/xarray/issues/4393,683980088,MDEyOklzc3VlQ29tbWVudDY4Mzk4MDA4OA==,2448579,2020-08-31T19:20:44Z,2020-08-31T19:20:44Z,MEMBER,"I think this is #2180; see https://github.com/pydata/xarray/issues/2180#issuecomment-391932929 . Basically the RHS is prioritized and the `x` variable gets overwritten with the version of `x` on the RHS. You can avoid this by going the Variable route instead of the DataArray route:`ds[""y""] = (""x"", range(len(ds.x)))` https://xarray.pydata.org/en/stable/data-structures.html#creating-a-dataset","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,689384366