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/6607#issuecomment-1126549148,https://api.github.com/repos/pydata/xarray/issues/6607,1126549148,IC_kwDOAMm_X85DJcac,2448579,2022-05-13T22:19:14Z,2022-05-13T22:19:14Z,MEMBER,"@shoyer This was the regression I ran in to. We could raise an error asking the user to switch to `swap_dims`. `x` is unindexed while `lon` is a coordinate variable. Then ``` ds = ds.rename(x='lon') ``` makes `lon` a dimension coordinate (though there is no entry in `._indexes`) ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1235725650