issue_comments
1 row where author_association = "NONE", issue = 29136905 and user = 4762214 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- Implement DataArray.idxmax() · 1 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
532354509 | https://github.com/pydata/xarray/issues/60#issuecomment-532354509 | https://api.github.com/repos/pydata/xarray/issues/60 | MDEyOklzc3VlQ29tbWVudDUzMjM1NDUwOQ== | joemcglinchy 4762214 | 2019-09-17T18:54:40Z | 2019-09-17T18:54:40Z | NONE | I got around this with some (masked) numpy operations. perhaps it is useful? I was seeing the ``` test_arr is some array with some nodata value, and is of dims [channels, rows, columns]nodata = -32768 ma = np.ma.masked_equal(test_arr, nodata) use np.any to get a mask of rows/columns which have all masked entriesspec_axis = 0 all_na_mask = np.any(ma, axis=spec_axis) get the argmax across specified axisargm = np.argmax(test_arr, axis=spec_axis) argm = np.ma.masked_less(argm, -np.inf) argm.mask = ~all_na_mask ``` big piece here is modifying the mask directly and making sure that is correct. numpy docs advise against this approach but it seems to be giving me what I want. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Implement DataArray.idxmax() 29136905 |
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