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/1855#issuecomment-566780123,https://api.github.com/repos/pydata/xarray/issues/1855,566780123,MDEyOklzc3VlQ29tbWVudDU2Njc4MDEyMw==,14808389,2019-12-17T22:35:17Z,2019-12-18T00:35:59Z,MEMBER,"we should, however, clearly define the use cases of `swap_dims` and `rename_dims`. Right now, the docs are not really clear on the difference between them.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,291405750 https://github.com/pydata/xarray/issues/1855#issuecomment-566601068,https://api.github.com/repos/pydata/xarray/issues/1855,566601068,MDEyOklzc3VlQ29tbWVudDU2NjYwMTA2OA==,14808389,2019-12-17T15:50:39Z,2019-12-17T22:35:47Z,MEMBER,"I think `rename_dims` does something different: it renames a dimension if the new name does not exist (if it exists, it does something strange, see #3438), while `swap_dims` creates a new dimension and moves the old dimension to `coords` (or `data_vars`?). Edit: I don't have a strong opinion, though","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,291405750 https://github.com/pydata/xarray/issues/1855#issuecomment-566598314,https://api.github.com/repos/pydata/xarray/issues/1855,566598314,MDEyOklzc3VlQ29tbWVudDU2NjU5ODMxNA==,2448579,2019-12-17T15:45:05Z,2019-12-17T15:45:05Z,MEMBER,I think we already have this as `ds.rename_dims`?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,291405750