home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where issue = 751732952 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

  • max-sixty 1

issue 1

  • Assigning nan to int-dtype array converts nan to int · 1 ✖

author_association 1

  • MEMBER 1
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
753426964 https://github.com/pydata/xarray/issues/4612#issuecomment-753426964 https://api.github.com/repos/pydata/xarray/issues/4612 MDEyOklzc3VlQ29tbWVudDc1MzQyNjk2NA== max-sixty 5635139 2021-01-02T03:55:30Z 2021-01-02T03:55:30Z MEMBER

Thanks, I agree this looks like a bug.

One oddity is that by supplying dtype="u8" I see the assignment having no effect:

```

In [18]: import xarray ...: import numpy ...: da = xarray.DataArray(numpy.array([0,1], dtype="u8")) ...: da[0] = numpy.nan ...: print(da) <xarray.DataArray (dim_0: 2)> array([0, 1], dtype=uint64) Dimensions without coordinates: dim_0 ```

I see the same result without the dtype arg.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Assigning nan to int-dtype array converts nan to int 751732952

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