home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where issue = 205414496 and user = 1217238 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 · 1 ✖

issue 1

  • confusing dataset creation process · 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
277759129 https://github.com/pydata/xarray/issues/1249#issuecomment-277759129 https://api.github.com/repos/pydata/xarray/issues/1249 MDEyOklzc3VlQ29tbWVudDI3Nzc1OTEyOQ== shoyer 1217238 2017-02-06T17:52:05Z 2017-02-06T17:52:05Z MEMBER

This was intentional, but is perhaps too magical/overloaded.

Here's the reasoning: 1. If dimension names are not provided for a 1D array, presume that it's sole dimension is the same as it's name. 2. Variables with the same name as a dimension must be coordinates in the xarray data model. Hence make these variables coordinates, even if they appears in the data_vars argument. (This is a bit of a hold from before there was a separate coords argument.)

Note that if you put an array with 2 or more dimensions directly into data_vars/coords you currently get ValueError.

Alternative behaviors that might make more sense: - Raise an error for this behavior, only allowing implicit dimension names when you put an array in coords. - Deprecate implicit dimension names for 1D arrays altogether. Later, switch to labeling arrays with automatic dimension names like the DataArray constructor.

I'm not a huge fan of this second option because if you don't get an error it would be easy to construct datasets with some variables having the wrong dimension names.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  confusing dataset creation process 205414496

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