issues: 231838537
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
231838537 | MDU6SXNzdWUyMzE4Mzg1Mzc= | 1431 | inconsistent behavior in stack/unstack along one dimension | 11671536 | closed | 0 | 4 | 2017-05-28T01:07:09Z | 2019-05-22T21:49:13Z | 2019-05-22T21:49:13Z | NONE | 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. ```python import xarray as xr dims = ['a', 'b'] coords = {'a': range(2), 'b':range(2)} values = [[0, 0], [0, 0]] dar = xr.DataArray(values, coords, dims) stacked = dar.stack(z=('a',)) # this works unstack = stacked.unstack('z') # this raises ValueError ``` |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1431/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |