home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where author_association = "NONE" and issue = 303130664 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 1

  • RafalSkolasinski 1

issue 1

  • question: dataset variables as coordinates · 1 ✖

author_association 1

  • NONE · 1 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
371184796 https://github.com/pydata/xarray/issues/1973#issuecomment-371184796 https://api.github.com/repos/pydata/xarray/issues/1973 MDEyOklzc3VlQ29tbWVudDM3MTE4NDc5Ng== RafalSkolasinski 10928117 2018-03-07T15:56:01Z 2018-03-07T18:59:18Z NONE

I just found one way to do it

python ds = ds2.transpose('a', 'n') tmp = [] for n, p in enumerate(ds.a): a = p.data.tolist() x = ds.x[n].data.tolist() y = ds.y[n].data.tolist() tmp.append(xr.DataArray(y, coords={'x': x, 'a': a}, dims='x'))

```python

ds1.equals(ds) True ```

I have a strong feeling that there should be much easier way to do it though...

Edit: I found a bit nicer way to do it python ds = ds2.set_coords('x') items = [ds.sel(a=a).swap_dims({'n': 'x'}) for a in ds.a] ds = xr.concat(items, dim='a') ds = ds.drop('n') ```python

ds1.equals(ds) True ``` however it still does not seem intuitive enough...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  question: dataset variables as coordinates 303130664

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 564.712ms · About: xarray-datasette