home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

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

  • Keeping attributes when using DataArray.astype · 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
381661771 https://github.com/pydata/xarray/issues/2049#issuecomment-381661771 https://api.github.com/repos/pydata/xarray/issues/2049 MDEyOklzc3VlQ29tbWVudDM4MTY2MTc3MQ== shoyer 1217238 2018-04-16T16:15:50Z 2018-04-16T16:15:50Z MEMBER

OK, sounds good with adding this to Variable, too. It's the internal data structure that we build most of xarray's higher level labeled arrays on: http://xarray.pydata.org/en/stable/internals.html#variable-objects

Feel free to open an incomplete PR with your current progress and I am happy to advise

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Keeping attributes when using DataArray.astype 313010564
380178000 https://github.com/pydata/xarray/issues/2049#issuecomment-380178000 https://api.github.com/repos/pydata/xarray/issues/2049 MDEyOklzc3VlQ29tbWVudDM4MDE3ODAwMA== shoyer 1217238 2018-04-10T17:12:32Z 2018-04-10T17:12:32Z MEMBER

We should probably just update astype() to preserve attributes.

Note: currently astype is directly assigning a method onto Dataset/DataArray (ugh!). https://github.com/pydata/xarray/blob/dc3eebf3a514cfdc1039b63f2a542121d1328ba9/xarray/core/ops.py#L39

It should really be switched to use a more transparent definition, e.g., a method defined in a base class, with the implementation defined by using apply_ufunc: https://github.com/pydata/xarray/blob/6402391cf206fd04c12d44773fecd9b42ea0c246/xarray/core/common.py#L748

This would make it quite easy to add keep_attrs=True.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Keeping attributes when using DataArray.astype 313010564

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