You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
inconsistent behavior in stack/unstack along one dimension #1431
I am using Ubuntu 16, python 3.6, and xarray 0.9.1
A DataArray can be stacked along one dimension, but when unstack is called a ValueError is raised. It seems that either unstack should work, or calling stack should also raise a ValueError.
This works with current master - so it can probably be closed? @d-chambers? (I think there is a error in the example - shouldn't it be unstack = stacked.unstack('z')?)
Activity
fujiisoup commentedon May 28, 2017
Hi @d-chambers
I am currently working for more consistent
MultiIndexbehaviour in #1426 .I will take a look also for
stack-unstackbehavior.shoyer commentedon May 30, 2017
Agreed, this does seem inconsistent. Thanks for the report!
mathause commentedon May 22, 2019
This works with current master - so it can probably be closed? @d-chambers? (I think there is a error in the example - shouldn't it be
unstack = stacked.unstack('z')?)d-chambers commentedon May 22, 2019
Yes, fixed the example. This seems to be fixed now, closing. Thanks again!