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/4825#issuecomment-766914263,https://api.github.com/repos/pydata/xarray/issues/4825,766914263,MDEyOklzc3VlQ29tbWVudDc2NjkxNDI2Mw==,2448579,2021-01-25T15:54:14Z,2021-01-25T15:54:14Z,MEMBER,"> I'm not sure exactly how to rationalize them though. How about 1. `rename_*` should only allow renaming to unused names, 2. `swap_dims` should only work with existing names. 3. `set_index` should raise an error for the ""renaming"" and ""swapping"" cases.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,789106802