issue_comments
1 row where issue = 1358960570 and user = 4160723 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- dataset.sel inconsistent results when argument is a list or a slice. · 1 ✖
| id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1235533796 | https://github.com/pydata/xarray/issues/6976#issuecomment-1235533796 | https://api.github.com/repos/pydata/xarray/issues/6976 | IC_kwDOAMm_X85JpL_k | benbovy 4160723 | 2022-09-02T13:53:15Z | 2022-09-02T13:53:15Z | MEMBER | Xarray passes the label indexers to the underlying pandas index: ```python import pandas as pd "x" coordinate indexidx = pd.Index([2, 1, 0, 3, 5]) da.sel(x=slice(2, 3)) does this:idx.slice_indexer(2, 3) which returns slice(0, 4, None)da.sel(x=[2, 3]) does this:idx.get_indexer([2, 3]) which returns array([0, 3])```
Is it always desirable? Asked differently, are there cases where one intentionally wants to select with a slice a non monotonic index? If yes, a warning might be annoying. Maybe this could be clarified in the docs too? |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
dataset.sel inconsistent results when argument is a list or a slice. 1358960570 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issue_comments] (
[html_url] TEXT,
[issue_url] TEXT,
[id] INTEGER PRIMARY KEY,
[node_id] TEXT,
[user] INTEGER REFERENCES [users]([id]),
[created_at] TEXT,
[updated_at] TEXT,
[author_association] TEXT,
[body] TEXT,
[reactions] TEXT,
[performed_via_github_app] TEXT,
[issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
ON [issue_comments] ([user]);
user 1