home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 594900245 and user = 2448579 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date)

user 1

  • dcherian · 2 ✖

issue 1

  • Sum based on start_index and end_index array · 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
609882875 https://github.com/pydata/xarray/issues/3941#issuecomment-609882875 https://api.github.com/repos/pydata/xarray/issues/3941 MDEyOklzc3VlQ29tbWVudDYwOTg4Mjg3NQ== dcherian 2448579 2020-04-06T15:59:37Z 2020-04-06T15:59:37Z MEMBER

why not?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Sum based on start_index and end_index array 594900245
609827384 https://github.com/pydata/xarray/issues/3941#issuecomment-609827384 https://api.github.com/repos/pydata/xarray/issues/3941 MDEyOklzc3VlQ29tbWVudDYwOTgyNzM4NA== dcherian 2448579 2020-04-06T14:24:53Z 2020-04-06T14:24:53Z MEMBER

where is usually the solution for this kind of problem. I added the keepdims to keep the y dimension after the sum.

python yindex = a.y.copy(data=np.arange(a.sizes["y"])) # generate DataArray of indexes a.where((yindex >= sindex) & (yindex <= eindex)).sum("y", keepdims=True)

Please close if this answers your question.

{
    "total_count": 4,
    "+1": 4,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Sum based on start_index and end_index array 594900245

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