issues: 427398236
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
427398236 | MDU6SXNzdWU0MjczOTgyMzY= | 2856 | Roundtripping between a dimension coordinate and scalar coordinate on a Dataset | 6628425 | closed | 0 | 4 | 2019-03-31T13:42:39Z | 2019-04-04T21:58:24Z | 2019-04-04T21:58:24Z | MEMBER | Code Sample, a copy-pastable example if possibleIn xarray 0.12.0 the following example produces a Dataset with no indexes: ``` In [1]: import xarray as xr In [2]: da = xr.DataArray([1], [('x', [0])], name='a') In [3]: da.to_dataset().isel(x=0).expand_dims('x').indexes Out[3]: ``` Expected OutputIn xarray 0.11.3 the roundtrip sequence above properly recovers the initial index along the In [2]: da = xr.DataArray([1], [('x', [0])], name='a') In [3]: da.to_dataset().isel(x=0).expand_dims('x').indexes Out[3]: x: Int64Index([0], dtype='int64', name='x') ``` Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2856/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |