home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 180503054 and user = 10050469 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

  • fmaussion · 3 ✖

issue 1

  • Extract value for given time latitude and longitude · 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
251057046 https://github.com/pydata/xarray/issues/1025#issuecomment-251057046 https://api.github.com/repos/pydata/xarray/issues/1025 MDEyOklzc3VlQ29tbWVudDI1MTA1NzA0Ng== fmaussion 10050469 2016-10-03T08:54:41Z 2016-10-03T08:54:41Z MEMBER

Glad that it worked out for you. Maybe you can close this issue?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Extract value for given time latitude and longitude 180503054
251042556 https://github.com/pydata/xarray/issues/1025#issuecomment-251042556 https://api.github.com/repos/pydata/xarray/issues/1025 MDEyOklzc3VlQ29tbWVudDI1MTA0MjU1Ng== fmaussion 10050469 2016-10-03T07:25:30Z 2016-10-03T07:25:30Z MEMBER

Without knowing how your data looks like it's difficult to say, but maybe you are getting a KeyError because of floating point precision issues. Maybe the keyword method='nearest' will be useful to you?

See the doc for other examples: http://xarray.pydata.org/en/stable/indexing.html#nearest-neighbor-lookups

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Extract value for given time latitude and longitude 180503054
250962829 https://github.com/pydata/xarray/issues/1025#issuecomment-250962829 https://api.github.com/repos/pydata/xarray/issues/1025 MDEyOklzc3VlQ29tbWVudDI1MDk2MjgyOQ== fmaussion 10050469 2016-10-02T09:41:41Z 2016-10-02T09:41:41Z MEMBER

Hi @slharris ,

Note that .isel() is for integer indexing while .sel() is for indexing by value (probably what you want).

if you want a range of values you should give a slice as argument, as indicated in the documentation: e.g. .sel(longitude=slice(34, 67))

(PS: when you report a problem it would be useful to also post the error message, which is more informative than "#this is where the problem occurs")

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Extract value for given time latitude and longitude 180503054

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