home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 149678642 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

  • shoyer 3

issue 1

  • Merging variables with overlapping not but not conflicting values · 3 ✖

author_association 1

  • MEMBER 3
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
274641365 https://github.com/pydata/xarray/issues/835#issuecomment-274641365 https://api.github.com/repos/pydata/xarray/issues/835 MDEyOklzc3VlQ29tbWVudDI3NDY0MTM2NQ== shoyer 1217238 2017-01-23T22:41:31Z 2017-01-23T22:41:31Z MEMBER

Fixed by #1204

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Merging variables with overlapping not but not conflicting values 149678642
258688602 https://github.com/pydata/xarray/issues/835#issuecomment-258688602 https://api.github.com/repos/pydata/xarray/issues/835 MDEyOklzc3VlQ29tbWVudDI1ODY4ODYwMg== shoyer 1217238 2016-11-06T15:34:39Z 2016-11-06T15:34:39Z MEMBER

Actually, we can just write:

def combine_first(left, right): return ops.where(ops.notnull(left), left, right)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Merging variables with overlapping not but not conflicting values 149678642
212289815 https://github.com/pydata/xarray/issues/835#issuecomment-212289815 https://api.github.com/repos/pydata/xarray/issues/835 MDEyOklzc3VlQ29tbWVudDIxMjI4OTgxNQ== shoyer 1217238 2016-04-20T07:07:30Z 2016-04-20T07:10:05Z MEMBER

I'm currently in the process of refactoring the merge code so this should be pretty easy to add in.

A few snippets that should come in handy:

``` python def combine_first(arrays): notnulls = [ops.notnull(array) for array in arrays] first_notnull = ops.argmax(ops.stack(notnulls), axis=0) return ops.choose(first_notnull, arrays)

def combine_if_equal(arrays): combined = combine_first(arrays) combined_null = ops.isnull(combined) if not all(((combined == array) | combined_null).all() for array in arrays): raise ValueError return combined ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Merging variables with overlapping not but not conflicting values 149678642

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