issues: 431412346
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 431412346 | MDU6SXNzdWU0MzE0MTIzNDY= | 2882 | Indexing with an empty sequence results in an exception | 2745737 | closed | 0 | 0 | 2019-04-10T09:58:24Z | 2019-04-12T00:25:44Z | 2019-04-12T00:25:44Z | CONTRIBUTOR | Code Sample, a copy-pastable example if possibleA "Minimal, Complete and Verifiable Example" will make it much easier for maintainers to help you: http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports ```python Your code hereda = DataArray(np.arange(12).reshape((3, 4)), dims=['x', 'y']) da[{'x': [0]}] # Okay da[{'x': []}] # error ``` Problem descriptionIndexing with an empty list results in an exception. Expected OutputIt should return a dataarray with an axis of length zero. Output of
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/2882/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |