home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 423023519 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • shoyer 2
  • aldanor 2

author_association 2

  • MEMBER 2
  • NONE 2

issue 1

  • KeyError on selecting empty time slice from a datetime-indexed Dataset · 4 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
474909166 https://github.com/pydata/xarray/issues/2825#issuecomment-474909166 https://api.github.com/repos/pydata/xarray/issues/2825 MDEyOklzc3VlQ29tbWVudDQ3NDkwOTE2Ng== aldanor 2418513 2019-03-20T16:16:43Z 2019-03-20T16:16:43Z NONE

IIRC the workaround is to use a slice with neighbouring dates which is unintuitive and ugly.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  KeyError on selecting empty time slice from a datetime-indexed Dataset 423023519
474908707 https://github.com/pydata/xarray/issues/2825#issuecomment-474908707 https://api.github.com/repos/pydata/xarray/issues/2825 MDEyOklzc3VlQ29tbWVudDQ3NDkwODcwNw== aldanor 2418513 2019-03-20T16:15:47Z 2019-03-20T16:15:47Z NONE

Oh God! Classic pandas...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  KeyError on selecting empty time slice from a datetime-indexed Dataset 423023519
474908063 https://github.com/pydata/xarray/issues/2825#issuecomment-474908063 https://api.github.com/repos/pydata/xarray/issues/2825 MDEyOklzc3VlQ29tbWVudDQ3NDkwODA2Mw== shoyer 1217238 2019-03-20T16:14:25Z 2019-03-20T16:14:25Z MEMBER

of course, my search turns up a related pandas issue I filed 5 years ago! https://github.com/pandas-dev/pandas/issues/7827

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  KeyError on selecting empty time slice from a datetime-indexed Dataset 423023519
474907475 https://github.com/pydata/xarray/issues/2825#issuecomment-474907475 https://api.github.com/repos/pydata/xarray/issues/2825 MDEyOklzc3VlQ29tbWVudDQ3NDkwNzQ3NQ== shoyer 1217238 2019-03-20T16:13:08Z 2019-03-20T16:13:08Z MEMBER

I agree, this is unfortunate. It's also consistent with how pandas handles indexing from a DatetimeIndex. I'll file an upstream issue.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  KeyError on selecting empty time slice from a datetime-indexed Dataset 423023519

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