issue_comments: 1080007416
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/pydata/xarray/issues/6392#issuecomment-1080007416 | https://api.github.com/repos/pydata/xarray/issues/6392 | 1080007416 | IC_kwDOAMm_X85AX5r4 | 5635139 | 2022-03-27T19:54:44Z | 2022-03-27T19:54:44Z | MEMBER | I realize there's a lot here and I've been out of this thread for a bit, so please forgive any naive questions!
What's the rationale for deprecating this? I think my experience with users of xarray is mostly those coming from pandas; for them interop is quite important. If there's a canonical way of transforming the index, it would be friendlier to do that automatically. ```python import pandas as pd import xarray as xr pd_idx = pd.MultiIndex.from_product([["a", "b"], [1, 2]], names=("foo", "bar")) idx = pd_idx ds = xr.Dataset(coords={"x": idx}) ``` i.e. ``` ds = xr.Dataset(coords=coords) ValueError: missing index(es) for coordinate(s): 'x', 'foo', 'bar'orcreate unindexed coordinates 'foo' and 'bar' and a 'x' coordinate with a single pandas index``` I would have expected the later, both for
👍 |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1175329407 |