home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

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

  • shoyer 3
  • dcherian 1

issue 1

  • Added docs example for `xarray.Dataset.get()` · 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
483643417 https://github.com/pydata/xarray/pull/2894#issuecomment-483643417 https://api.github.com/repos/pydata/xarray/issues/2894 MDEyOklzc3VlQ29tbWVudDQ4MzY0MzQxNw== dcherian 2448579 2019-04-16T12:43:58Z 2019-04-16T12:43:58Z MEMBER

I missed that x is a coordinate.

Thanks @jbusecke

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Added docs example for `xarray.Dataset.get()` 433410125
483459088 https://github.com/pydata/xarray/pull/2894#issuecomment-483459088 https://api.github.com/repos/pydata/xarray/issues/2894 MDEyOklzc3VlQ29tbWVudDQ4MzQ1OTA4OA== shoyer 1217238 2019-04-15T23:48:02Z 2019-04-15T23:48:02Z MEMBER

Yes, I think it would make more sense to add an example with another variable.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Added docs example for `xarray.Dataset.get()` 433410125
483457747 https://github.com/pydata/xarray/pull/2894#issuecomment-483457747 https://api.github.com/repos/pydata/xarray/issues/2894 MDEyOklzc3VlQ29tbWVudDQ4MzQ1Nzc0Nw== shoyer 1217238 2019-04-15T23:40:44Z 2019-04-15T23:40:44Z MEMBER

So should I just add an example with multiple variables using ds[['var1', 'var2']]?

I think this is probably a better idea.

To be honest, I don't know if .get() if useful for anyone with a list -- it's implementation here was really an accident (based on how Mapping.get works) rather than an intentional choice.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Added docs example for `xarray.Dataset.get()` 433410125
483455690 https://github.com/pydata/xarray/pull/2894#issuecomment-483455690 https://api.github.com/repos/pydata/xarray/issues/2894 MDEyOklzc3VlQ29tbWVudDQ4MzQ1NTY5MA== shoyer 1217238 2019-04-15T23:29:48Z 2019-04-15T23:29:48Z MEMBER

For context: we didn't explicitly implement a .get() method on Dataset, we get it implemented for free because xarray.Dataset inherits from collections.abc.Mapping. So the only practical difference between .get() and [] on Dataset is the same as the difference for a general Python mapping: .get() returns a default value (which defaults to None) instead of raising KeyError.

I'm not sure it's particularly useful to show examples using .get() here, unless we want to show this difference in behavior if a key is not found.

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Added docs example for `xarray.Dataset.get()` 433410125

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