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/7563#issuecomment-1463633814,https://api.github.com/repos/pydata/xarray/issues/7563,1463633814,IC_kwDOAMm_X85XPUeW,4160723,2023-03-10T10:59:07Z,2023-03-10T10:59:07Z,MEMBER,"Thanks for the report @lkugler ! Directly assigning a multi-index like `mda['position'] = midx` is now ambiguous because all levels of the multi-index are now exposed as actual coordinates. We should provide a temporary fix or at least issue a warning. A proper way to assign a pandas multi-index is implemented in #7368. In the meantime, the workaround below should work for your example (it might stop working in the future, though): ```python mda.coords.update(xr.Dataset(coords={""position"": midx})) ```","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1600983717