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/6754#issuecomment-1176368145,https://api.github.com/repos/pydata/xarray/issues/6754,1176368145,IC_kwDOAMm_X85GHfQR,2448579,2022-07-06T15:32:12Z,2022-07-06T15:32:12Z,MEMBER,"@max-sixty yeah that's valid. @raybellwaves `ds.to_array(dim=""variable"").transpose(""latitude"", ""longitude"", ""variable"")` could be written as `ds.to_array(dim=""variable"").transpose(..., ""variable"")` which generalizes better","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1294978633 https://github.com/pydata/xarray/issues/6754#issuecomment-1175723941,https://api.github.com/repos/pydata/xarray/issues/6754,1175723941,IC_kwDOAMm_X85GFB-l,2448579,2022-07-06T02:58:27Z,2022-07-06T02:58:27Z,MEMBER,We could follow the `axis` kwarg to `DataArray.expand_dims` as precedent. It specifies the axis number for the new dimension.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1294978633