home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where author_association = "MEMBER" and issue = 361237908 sorted by updated_at descending

✖
✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 3

  • shoyer 2
  • rabernat 1
  • fujiisoup 1

issue 1

  • Document ways to reshape a DataArray · 4 ✖

author_association 1

  • MEMBER · 4 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
499721397 https://github.com/pydata/xarray/issues/2419#issuecomment-499721397 https://api.github.com/repos/pydata/xarray/issues/2419 MDEyOklzc3VlQ29tbWVudDQ5OTcyMTM5Nw== rabernat 1197350 2019-06-07T00:52:10Z 2019-06-07T00:52:10Z MEMBER

This was to facilitate looking at the max and min as a function of "month", take the difference, and then average over "year"

What about python gb = ds.groupby('time.year') gb.max(dim='time') - gb.min(dim='time')

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Document ways to reshape a DataArray 361237908
499716635 https://github.com/pydata/xarray/issues/2419#issuecomment-499716635 https://api.github.com/repos/pydata/xarray/issues/2419 MDEyOklzc3VlQ29tbWVudDQ5OTcxNjYzNQ== shoyer 1217238 2019-06-07T00:26:10Z 2019-06-07T00:26:10Z MEMBER

This can be done with a MultiIndex and unstack(), but yes right now it's definitely an awkward API.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Document ways to reshape a DataArray 361237908
422473257 https://github.com/pydata/xarray/issues/2419#issuecomment-422473257 https://api.github.com/repos/pydata/xarray/issues/2419 MDEyOklzc3VlQ29tbWVudDQyMjQ3MzI1Nw== shoyer 1217238 2018-09-18T17:08:49Z 2018-09-18T17:08:49Z MEMBER

Can you give an more specific example use-case, e.g., before/after?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Document ways to reshape a DataArray 361237908
422357134 https://github.com/pydata/xarray/issues/2419#issuecomment-422357134 https://api.github.com/repos/pydata/xarray/issues/2419 MDEyOklzc3VlQ29tbWVudDQyMjM1NzEzNA== fujiisoup 6815844 2018-09-18T11:29:31Z 2018-09-18T11:29:31Z MEMBER

Thanks for raising an issue, @dimitryx2017. I like this idea.

We usually have methods rather than function. Any idea about the API?

We usually use a keyword argument. I'm thinking something like Ar.reshape(time=(('year', (2017, 2018)), ('month', np.arange(12))), but it looks a little long...

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Document ways to reshape a DataArray 361237908

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 15.738ms · About: xarray-datasette
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows