issues: 511498714
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
511498714 | MDU6SXNzdWU1MTE0OTg3MTQ= | 3438 | Re-indexing causes coordinates to be dropped | 1200058 | closed | 0 | 2 | 2019-10-23T18:31:18Z | 2020-01-09T01:46:46Z | 2020-01-09T01:46:46Z | NONE | Hi, I encounter a problem with the index being dropped when I rename a dimension and stack it afterwards: MCVE Code Sample```python ds = xr.Dataset({ "test": xr.DataArray( [[[1,2],[3,4]], [[1,2],[3,4]]], dims=("genes", "observations", "subtissues"), coords={ "observations": xr.DataArray(["x-1", "y-1"], dims=("observations",)), "individuals": xr.DataArray(["x", "y"], dims=("observations",)), "genes": xr.DataArray(["a", "b"], dims=("genes",)), "subtissues": xr.DataArray(["c", "d"], dims=("subtissues",)), } ) })
Is this by intention? Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3438/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |