home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 607678694 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

  • leifdenby 1
  • keewis 1

author_association 2

  • CONTRIBUTOR 1
  • MEMBER 1

issue 1

  • Issue indexing by xarray's own time values + offset · 2 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
620097623 https://github.com/pydata/xarray/issues/4010#issuecomment-620097623 https://api.github.com/repos/pydata/xarray/issues/4010 MDEyOklzc3VlQ29tbWVudDYyMDA5NzYyMw== keewis 14808389 2020-04-27T16:36:30Z 2020-04-28T11:03:06Z MEMBER

take a look at the result of np.timedelta64(seconds=4): ```python In [2]: np.timedelta64(seconds=4) Out[2]: numpy.timedelta64(0)

In [3]: np.timedelta64(dt.timedelta(seconds=4)) Out[3]: numpy.timedelta64(4000000,'us')

In [4]: np.timedelta64(4, 's').astype("timedelta64[us]") Out[4]: numpy.timedelta64(4000000,'us') `` so you need to also specify the desired unit or cast adt.timedeltaobject. I'm not sure whytimedelta64ignores theseconds` kwarg, though.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Issue indexing by xarray's own time values + offset 607678694
620456062 https://github.com/pydata/xarray/issues/4010#issuecomment-620456062 https://api.github.com/repos/pydata/xarray/issues/4010 MDEyOklzc3VlQ29tbWVudDYyMDQ1NjA2Mg== leifdenby 2405019 2020-04-28T08:20:16Z 2020-04-28T08:20:32Z CONTRIBUTOR

Ah! It's an issue with how I am using np.timedelta64 then. I (stupidly) assumed that np.timedelta64 has the same call signature as datetime.timedelta. It appears that np.timedelta64 silently ignores any kwargs 😕

Anyway, I won't be making that mistake again. Thank you @keewis !

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Issue indexing by xarray's own time values + offset 607678694

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