issues: 1758106607
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1758106607 | I_kwDOAMm_X85oypPv | 7921 | Error when adding a DataArray to an existing Dataset with a MultiIndex | 6095790 | closed | 0 | 10 | 2023-06-15T06:08:17Z | 2023-09-06T06:25:45Z | 2023-08-29T14:23:32Z | NONE | What is your issue?This is a mixture between question, bug (potentially) and general issue, so feel free to label it accordingly. Here is my question: what is the recommended approach to add a To give some more context, I've a
Now, I want to add another variable, called
And it worked totally fine. With the newest versions of
I totally fail to see how this process is deleting a level of the MultiIndex - or modifying the indexes in any form. Probably it is because I don't understand the inner workings of The following works totally fine, but it is rather convoluted having to create a brand new Dataset from scratch manually, in addition to be problematic if you really want to modify the Dataset in place (same problem will have
Resulting in:
Many thanks for your support! |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/7921/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |