home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where author_association = "MEMBER" and issue = 347712372 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

  • shoyer 2

issue 1

  • FutureWarning: creation of DataArrays w/ coords Dataset · 2 ✖

author_association 1

  • MEMBER · 2 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
410751334 https://github.com/pydata/xarray/pull/2344#issuecomment-410751334 https://api.github.com/repos/pydata/xarray/issues/2344 MDEyOklzc3VlQ29tbWVudDQxMDc1MTMzNA== shoyer 1217238 2018-08-06T15:37:53Z 2018-08-06T15:37:53Z MEMBER

If you really want to save the data / metadata separately for a DataArray, you might as well roll your own version of to_dict/from_dict. The code for these methods is remarkably simple, all using public APIs: https://github.com/pydata/xarray/blob/ded0a684136540962bcc409e6272b1cebb5af30a/xarray/core/dataarray.py#L1662-L1674

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  FutureWarning: creation of DataArrays w/ coords Dataset 347712372
410564717 https://github.com/pydata/xarray/pull/2344#issuecomment-410564717 https://api.github.com/repos/pydata/xarray/issues/2344 MDEyOklzc3VlQ29tbWVudDQxMDU2NDcxNw== shoyer 1217238 2018-08-06T01:26:01Z 2018-08-06T01:26:10Z MEMBER

I'm not sure we want to add this special case.

Logically, if a iterating over a Dataset only includes data_vars (as of xarray v0.11), then it would seem unexpected to use variables instead when a Dataset is passed as coords into the DataArray constructor.

If you want to copy coordinates coords or variables, you can do that explicitly, e.g., DataArray(array, dims=dims, coords=dataset.coords).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  FutureWarning: creation of DataArrays w/ coords Dataset 347712372

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