home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where issue = 803075280 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 4

  • keewis 2
  • max-sixty 1
  • spencerkclark 1
  • feefladder 1

author_association 2

  • MEMBER 4
  • CONTRIBUTOR 1

issue 1

  • Datetime as coordinaets does not convert back to datetime (returns int) · 5 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
808602928 https://github.com/pydata/xarray/issues/4880#issuecomment-808602928 https://api.github.com/repos/pydata/xarray/issues/4880 MDEyOklzc3VlQ29tbWVudDgwODYwMjkyOA== spencerkclark 6628425 2021-03-27T00:26:32Z 2021-03-27T00:26:32Z MEMBER

Yes I think unfortunately there is not much we can do here, since as @keewis noted, data_frame.coords["time"].data is a NumPy array.

This issue in general is a little tricky since xarray and pandas use nanosecond-precision datetime values, but datetime.datetime objects only have microsecond precision. See also discussion in https://github.com/numpy/numpy/issues/8546, https://github.com/numpy/numpy/issues/12550, and https://github.com/pydata/xarray/issues/3256.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Datetime as coordinaets does not convert back to datetime (returns int) 803075280
808149689 https://github.com/pydata/xarray/issues/4880#issuecomment-808149689 https://api.github.com/repos/pydata/xarray/issues/4880 MDEyOklzc3VlQ29tbWVudDgwODE0OTY4OQ== keewis 14808389 2021-03-26T11:40:10Z 2021-03-26T11:40:10Z MEMBER

Possibly, if this doesn't require any action from us. @spencerkclark, what do you think?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Datetime as coordinaets does not convert back to datetime (returns int) 803075280
808037776 https://github.com/pydata/xarray/issues/4880#issuecomment-808037776 https://api.github.com/repos/pydata/xarray/issues/4880 MDEyOklzc3VlQ29tbWVudDgwODAzNzc3Ng== feefladder 33122845 2021-03-26T08:34:27Z 2021-03-26T08:34:27Z CONTRIBUTOR

Yes, I created that issue :), should this then be closed?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Datetime as coordinaets does not convert back to datetime (returns int) 803075280
807686679 https://github.com/pydata/xarray/issues/4880#issuecomment-807686679 https://api.github.com/repos/pydata/xarray/issues/4880 MDEyOklzc3VlQ29tbWVudDgwNzY4NjY3OQ== keewis 14808389 2021-03-25T23:05:56Z 2021-03-25T23:05:56Z MEMBER

yes, I believe this to be a numpy issue: python date_frame.coords['time'].data[0] returns a numpy.datetime64[ns] object, which, casted to datetime.datetime using astype becomes a int. See numpy/numpy#18363 for the upstream issue.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Datetime as coordinaets does not convert back to datetime (returns int) 803075280
807612298 https://github.com/pydata/xarray/issues/4880#issuecomment-807612298 https://api.github.com/repos/pydata/xarray/issues/4880 MDEyOklzc3VlQ29tbWVudDgwNzYxMjI5OA== max-sixty 5635139 2021-03-25T22:21:35Z 2021-03-25T22:21:35Z MEMBER

Thanks for clear example. As per @keewis 's label, this does look like an upstream issue.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Datetime as coordinaets does not convert back to datetime (returns int) 803075280

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 36.127ms · About: xarray-datasette
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows