home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where author_association = "MEMBER" and issue = 166195300 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 2

issue 1

  • How to apply function to two (or more) variables simultaneously · 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
233506655 https://github.com/pydata/xarray/issues/900#issuecomment-233506655 https://api.github.com/repos/pydata/xarray/issues/900 MDEyOklzc3VlQ29tbWVudDIzMzUwNjY1NQ== shoyer 1217238 2016-07-19T01:31:40Z 2016-07-19T01:31:40Z MEMBER

Glad to help!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  How to apply function to two (or more) variables simultaneously 166195300
233472927 https://github.com/pydata/xarray/issues/900#issuecomment-233472927 https://api.github.com/repos/pydata/xarray/issues/900 MDEyOklzc3VlQ29tbWVudDIzMzQ3MjkyNw== shoyer 1217238 2016-07-18T22:03:16Z 2016-07-18T22:03:16Z MEMBER

If you write a function that can take an xarray.Dataset as input, you can still use groupby and apply. So generally the pattern I would use is:

obs = obs.reindex_like(fcst) # possibly using tolerance if the grid isn't exactly the same combined = xarray.Dataset({'obs': obs, 'fcst': fcst}) combined.groupby('time').apply(calculate_skill)

It's hard to answer in more specifics without seeing your code/data, though.

If you need to do time shifts between reference time and (actual) time, it's pretty straightforward with xarray (we had some custom code to do that at my last job) but it isn't a one-liner.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  How to apply function to two (or more) variables simultaneously 166195300

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