issues: 1880184915
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1880184915 | PR_kwDOAMm_X85ZespA | 8143 | Deprecate the multi-index dimension coordinate | 4160723 | open | 0 | 0 | 2023-09-04T12:32:36Z | 2023-09-04T12:32:48Z | MEMBER | 0 | pydata/xarray/pulls/8143 |
This PR adds a ```python import xarray as xr ds = xr.Dataset(coords={"x": ["a", "b"], "y": [1, 2]}) ds.stack(z=["x", "y"]) <xarray.Dataset>Dimensions: (z: 4)Coordinates:* z (z) object MultiIndex* x (z) <U1 'a' 'a' 'b' 'b'* y (z) int64 1 2 1 2Data variables:emptywith xr.set_options(future_no_mindex_dim_coord=True): ds.stack(z=["x", "y"]) <xarray.Dataset>Dimensions: (z: 4)Coordinates:* x (z) <U1 'a' 'a' 'b' 'b'* y (z) int64 1 2 1 2Dimensions without coordinates: zData variables:empty``` There are a few other things that we'll need to adapt or deprecate:
I started updating the tests, although this will be much easier once #8140 is merged. This is something that we could also easily split into multiple PRs. It is probably OK if some features are (temporarily) breaking badly when setting |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/8143/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 } |
13221727 | pull |