issue_comments: 302170558
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/pull/1412#issuecomment-302170558 | https://api.github.com/repos/pydata/xarray/issues/1412 | 302170558 | MDEyOklzc3VlQ29tbWVudDMwMjE3MDU1OA== | 1217238 | 2017-05-17T17:42:58Z | 2017-05-17T17:42:58Z | MEMBER |
I don't like this change. It breaks an important invariant, which is that indexing a Variable returns another Variable. I do agree with indexing along a MultiIndex dimension should unpacking the tuple for coordinates, but only for coordinates. So this needs to be somewhere in the Consider indexing In [8]: ds['yx'][0]
Out[8]:
<xarray.DataArray 'yx' ()>
array(('a', 1), dtype=object)
Coordinates:
yx object ('a', 1)
I tested this example on your PR branch, and it actually crashes with |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
229370997 |