issue_comments
4 rows where issue = 357156174 and user = 1217238 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- DataArray.loc fails for duplicates where DataFrame works · 4 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
420373780 | https://github.com/pydata/xarray/issues/2399#issuecomment-420373780 | https://api.github.com/repos/pydata/xarray/issues/2399 | MDEyOklzc3VlQ29tbWVudDQyMDM3Mzc4MA== | shoyer 1217238 | 2018-09-11T18:28:43Z | 2018-09-11T18:28:43Z | MEMBER | CC @fujiisoup who implemented much of this. I will also take a look at your doc when I have the chance. I do think that handling duplicate matches with indexing is an important use-case. This comes up with nearest neighbor matching as well -- it would be useful to be able to return the full set of matches within a given distance, not just the nearest match. I wonder if it would be more productive to consider a new indexing API for one -> many matches. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
DataArray.loc fails for duplicates where DataFrame works 357156174 | |
419580420 | https://github.com/pydata/xarray/issues/2399#issuecomment-419580420 | https://api.github.com/repos/pydata/xarray/issues/2399 | MDEyOklzc3VlQ29tbWVudDQxOTU4MDQyMA== | shoyer 1217238 | 2018-09-07T22:15:33Z | 2018-09-07T22:15:33Z | MEMBER | Please take a look at xarray's detailed indexing rules: http://xarray.pydata.org/en/stable/indexing.html#indexing-rules
I think this is the crux of the problem. Put another way: why should the result of indexing be a 1x2 array instead of a 2x1 array? Currently (with the exception of indexing by a scalar with an index with duplicates), xarray determines the shape/dimensions resulting from indexing from the shape/dimensions of the indexers not the array being indexed. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
DataArray.loc fails for duplicates where DataFrame works 357156174 | |
419173479 | https://github.com/pydata/xarray/issues/2399#issuecomment-419173479 | https://api.github.com/repos/pydata/xarray/issues/2399 | MDEyOklzc3VlQ29tbWVudDQxOTE3MzQ3OQ== | shoyer 1217238 | 2018-09-06T17:18:08Z | 2018-09-06T17:18:08Z | MEMBER | Let me give a more concrete example of the issue for multi-dimensional indexing:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
DataArray.loc fails for duplicates where DataFrame works 357156174 | |
418778596 | https://github.com/pydata/xarray/issues/2399#issuecomment-418778596 | https://api.github.com/repos/pydata/xarray/issues/2399 | MDEyOklzc3VlQ29tbWVudDQxODc3ODU5Ng== | shoyer 1217238 | 2018-09-05T15:41:21Z | 2018-09-05T15:41:21Z | MEMBER | Thanks for the report! This was actually a somewhat intentional omission in xarray, but if would not be particularly difficult to add in this feature if we want it. At the very least, we should note this deviation somewhere in the docs. There are two potentially problematic aspects to the pandas behavior:
1. It means that you cannot count on indexing a dataframe with its own index to return something equivalent to the original dataframe, e.g., consider Now that you bring this up, I wonder how the existing supporting for indexing like |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
DataArray.loc fails for duplicates where DataFrame works 357156174 |
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