home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 309691307 and user = 5635139 sorted by updated_at descending

✖
✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date)

user 1

  • max-sixty · 2 ✖

issue 1

  • slice using non-index coordinates · 2 ✖

author_association 1

  • MEMBER 2
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
377316057 https://github.com/pydata/xarray/issues/2028#issuecomment-377316057 https://api.github.com/repos/pydata/xarray/issues/2028 MDEyOklzc3VlQ29tbWVudDM3NzMxNjA1Nw== max-sixty 5635139 2018-03-29T17:44:11Z 2018-03-29T17:44:11Z MEMBER

What's the easiest way to select on multiple values? Is it really this:

```python In [63]: da = xr.DataArray(np.random.rand(3,2), dims=list('ab'), coords={'c':(('a',),list('xyz'))})

In [64]: da.sel(a=(np.isin(da.c, list('xy')))) Out[64]: <xarray.DataArray (a: 2, b: 2)> array([[0.383989, 0.174317], [0.698948, 0.815993]]) Coordinates: c (a) <U1 'x' 'y' Dimensions without coordinates: a, b ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  slice using non-index coordinates 309691307
377306186 https://github.com/pydata/xarray/issues/2028#issuecomment-377306186 https://api.github.com/repos/pydata/xarray/issues/2028 MDEyOklzc3VlQ29tbWVudDM3NzMwNjE4Ng== max-sixty 5635139 2018-03-29T17:12:21Z 2018-03-29T17:12:21Z MEMBER

I agree this is harder that it should be.

Here's one way: ```python

In [28]: a.where(a.currency=='EUR', drop=True) Out[28]: <xarray.DataArray (country: 2)> array([20., 30.]) Coordinates: * country (country) <U7 'Germany' 'France' currency (country) <U3 'EUR' 'EUR' ```

I'm not sure whether .sel should work for non-IndexVariables - thoughts?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  slice using non-index coordinates 309691307

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

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]);
Powered by Datasette · Queries took 5123.401ms · About: xarray-datasette
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows