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/6502#issuecomment-1104035550,https://api.github.com/repos/pydata/xarray/issues/6502,1104035550,IC_kwDOAMm_X85Bzj7e,2448579,2022-04-20T15:00:04Z,2022-04-20T15:00:04Z,MEMBER,"I think we should raise a nicer error message. Transpose is an outlier in our API. In nearly every other function, you are expected to pass a list of dimension names.","{""total_count"": 1, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 1, ""rocket"": 0, ""eyes"": 0}",,1209745654
https://github.com/pydata/xarray/issues/6502#issuecomment-1104023306,https://api.github.com/repos/pydata/xarray/issues/6502,1104023306,IC_kwDOAMm_X85Bzg8K,42008691,2022-04-20T14:49:02Z,2022-04-20T14:49:02Z,NONE,"Oh... I am so sorry about this. This works as expected now.
It's weird that using list seemed to have worked at some point. Thanks a lot for your help","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1209745654
https://github.com/pydata/xarray/issues/6502#issuecomment-1104017240,https://api.github.com/repos/pydata/xarray/issues/6502,1104017240,IC_kwDOAMm_X85BzfdY,2448579,2022-04-20T14:43:36Z,2022-04-20T14:43:36Z,MEMBER,"```
ds.transpose(['y','z','y'])
```
Ah... Reemove the list here and try `ds.transpose(""y"", ""z"", x"")` (no list) which is what you have in the first post. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1209745654
https://github.com/pydata/xarray/issues/6502#issuecomment-1104007301,https://api.github.com/repos/pydata/xarray/issues/6502,1104007301,IC_kwDOAMm_X85BzdCF,42008691,2022-04-20T14:34:38Z,2022-04-20T14:34:38Z,NONE,"Thanks. I upgraded to 2022.03.0
I am still getting the error
```
Python 3.9.12 (main, Apr 5 2022, 06:56:58)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type ""help"", ""copyright"", ""credits"" or ""license"" for more information.
>>> import xarray as xr
>>> xr.__version__
'2022.3.0'
>>> ds = xr.Dataset({""foo"": ((""x"", ""y"", ""z""), [[[42]]]), ""bar"": ((""y"", ""z""), [[24]])})
>>> ds.transpose(['y','z','y'])
Traceback (most recent call last):
File """", line 1, in
File ""/nbhome/f1p/miniconda3/envs/f1p_gfdl/lib/python3.9/site-packages/xarray/core/dataset.py"", line 4650, in transpose
_ = list(infix_dims(dims, self.dims, missing_dims))
File ""/nbhome/f1p/miniconda3/envs/f1p_gfdl/lib/python3.9/site-packages/xarray/core/utils.py"", line 786, in infix_dims
existing_dims = drop_missing_dims(dims_supplied, dims_all, missing_dims)
File ""/nbhome/f1p/miniconda3/envs/f1p_gfdl/lib/python3.9/site-packages/xarray/core/utils.py"", line 874, in drop_missing_dims
supplied_dims_set = {val for val in supplied_dims if val is not ...}
File ""/nbhome/f1p/miniconda3/envs/f1p_gfdl/lib/python3.9/site-packages/xarray/core/utils.py"", line 874, in
supplied_dims_set = {val for val in supplied_dims if val is not ...}
TypeError: unhashable type: 'list'
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1209745654
https://github.com/pydata/xarray/issues/6502#issuecomment-1104000537,https://api.github.com/repos/pydata/xarray/issues/6502,1104000537,IC_kwDOAMm_X85BzbYZ,2448579,2022-04-20T14:28:21Z,2022-04-20T14:29:22Z,MEMBER,"I can't reproduce on our dev branch. Can you try upgrading xarray please?
EDIT: can't reproduce on 2022.03.0 either.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1209745654