issues: 370960004
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
370960004 | MDU6SXNzdWUzNzA5NjAwMDQ= | 2489 | Renaming a coordinate of a multi-index after stack fails | 16508140 | closed | 0 | 3 | 2018-10-17T08:40:04Z | 2022-03-17T17:11:41Z | 2022-03-17T17:11:41Z | NONE | Code Sample, a copy-pastable example if possible```python import numpy as np import xarray as xr da = xr.DataArray(np.arange(np.prod(dims)).reshape(*dims), coords=[('dim0', np.arange(dims[0])), ('dim1', np.arange(dims[0]) + 2)]) daStacked = da.stack(dim0_dim1=['dim0', 'dim1']) daStacked.rename(dim1='foo') ``` Problem description
Expected Output
Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2489/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |