home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

7 rows where author_association = "MEMBER", issue = 396501063 and user = 1197350 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

  • rabernat · 7 ✖

issue 1

  • to_dict without data · 7 ✖

author_association 1

  • MEMBER · 7 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
462909530 https://github.com/pydata/xarray/pull/2659#issuecomment-462909530 https://api.github.com/repos/pydata/xarray/issues/2659 MDEyOklzc3VlQ29tbWVudDQ2MjkwOTUzMA== rabernat 1197350 2019-02-12T19:53:58Z 2019-02-12T19:53:58Z MEMBER

p.s. I learned about this from @kwilcox in https://github.com/pangeo-data/pangeo-datastore/issues/3. He might be a good person to loop into this discussion.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  to_dict without data 396501063
462901810 https://github.com/pydata/xarray/pull/2659#issuecomment-462901810 https://api.github.com/repos/pydata/xarray/issues/2659 MDEyOklzc3VlQ29tbWVudDQ2MjkwMTgxMA== rabernat 1197350 2019-02-12T19:33:10Z 2019-02-12T19:33:10Z MEMBER

And this http://cf-json.org/specification

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  to_dict without data 396501063
461178889 https://github.com/pydata/xarray/pull/2659#issuecomment-461178889 https://api.github.com/repos/pydata/xarray/issues/2659 MDEyOklzc3VlQ29tbWVudDQ2MTE3ODg4OQ== rabernat 1197350 2019-02-06T20:40:15Z 2019-02-06T20:40:15Z MEMBER

Too late, I found this:

https://binary-array-ld.github.io/netcdf-ld/

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  to_dict without data 396501063
455553874 https://github.com/pydata/xarray/pull/2659#issuecomment-455553874 https://api.github.com/repos/pydata/xarray/issues/2659 MDEyOklzc3VlQ29tbWVudDQ1NTU1Mzg3NA== rabernat 1197350 2019-01-18T13:55:56Z 2019-01-18T13:55:56Z MEMBER

Let's get this merged?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  to_dict without data 396501063
453432847 https://github.com/pydata/xarray/pull/2659#issuecomment-453432847 https://api.github.com/repos/pydata/xarray/issues/2659 MDEyOklzc3VlQ29tbWVudDQ1MzQzMjg0Nw== rabernat 1197350 2019-01-11T08:44:25Z 2019-01-11T08:44:25Z MEMBER

Maybe we could change it so that attrs is only included if it is non-empty.

How do people feel about this? If folks are fine with it as is, then LGTM.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  to_dict without data 396501063
452219508 https://github.com/pydata/xarray/pull/2659#issuecomment-452219508 https://api.github.com/repos/pydata/xarray/issues/2659 MDEyOklzc3VlQ29tbWVudDQ1MjIxOTUwOA== rabernat 1197350 2019-01-08T08:48:03Z 2019-01-08T08:48:03Z MEMBER

Here is what the .to_dict(data=False) output looks like from the test example

python x = np.random.randn(10) y = np.random.randn(10) t = list('abcdefghij') ds = Dataset(OrderedDict([('a', ('t', x)), ('b', ('t', y)), ('t', ('t', t))])) ds.to_dict(data=False)

{'attrs': {}, 'coords': {'t': {'attrs': {}, 'dims': ('t',), 'dtype': '<U1', 'shape': (10,)}}, 'data_vars': {'a': {'attrs': {}, 'dims': ('t',), 'dtype': 'float64', 'shape': (10,)}, 'b': {'attrs': {}, 'dims': ('t',), 'dtype': 'float64', 'shape': (10,)}}, 'dims': {'t': 10}}

The one thing I don't like about this is the empty attributes. Maybe we could change it so that attrs is only included if it is non-empty. Alternatively, we coiuld add a squeeze_attrs option.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  to_dict without data 396501063
452020337 https://github.com/pydata/xarray/pull/2659#issuecomment-452020337 https://api.github.com/repos/pydata/xarray/issues/2659 MDEyOklzc3VlQ29tbWVudDQ1MjAyMDMzNw== rabernat 1197350 2019-01-07T17:49:03Z 2019-01-07T17:49:03Z MEMBER

It just occurred to me that it would be nice to have some extra info about the data, such as dtype.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  to_dict without data 396501063

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