issues: 438947247
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
438947247 | MDU6SXNzdWU0Mzg5NDcyNDc= | 2933 | Stack() & unstack() issues on Multindex | 1559890 | closed | 0 | 4 | 2019-04-30T19:47:51Z | 2022-04-09T15:23:28Z | 2022-04-09T15:23:28Z | NONE | I would like to reshape the DataArray by one level in the Multindex, and I thought the Make a DataArray with Multindex:
Stack problem:I want a dimension merges into another one:
Unstack problem:Unstacking by the whole Multindex worked:
Coordinates:
* variable (variable) int32 0 1 2 3
* first (first) object 'bar' 'baz' 'foo'
* second (second) object 'one' 'two'
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2933/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |