issue_comments: 1234453085
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/6976#issuecomment-1234453085 | https://api.github.com/repos/pydata/xarray/issues/6976 | 1234453085 | IC_kwDOAMm_X85JlEJd | 10194086 | 2022-09-01T15:37:25Z | 2022-09-01T15:37:25Z | MEMBER | A smaller repro: ```python import numpy as np import xarray as xr xr.DataArray(np.arange(5), dims="x", coords={"x": [2, 1, 0, 3, 5]}) da.sel(x=slice(2, 3)) ``` Returns:
Yes, good point. What might be possible is to warn if selecting with a slice and the index is not monotonic increasing or decreasing. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1358960570 |