home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 405487803 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • shoyer 2
  • ahmedshaaban1 1

author_association 2

  • MEMBER 2
  • NONE 1

issue 1

  • Unable to construct indexVariable. · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
460150546 https://github.com/pydata/xarray/issues/2733#issuecomment-460150546 https://api.github.com/repos/pydata/xarray/issues/2733 MDEyOklzc3VlQ29tbWVudDQ2MDE1MDU0Ng== shoyer 1217238 2019-02-04T07:12:56Z 2019-02-04T07:12:56Z MEMBER

Generally you'll want to access variables in a Dataset directly as DataArray objects, e.g., tmp_file['lat']. .variables is the low level API.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Unable to construct indexVariable. 405487803
460150121 https://github.com/pydata/xarray/issues/2733#issuecomment-460150121 https://api.github.com/repos/pydata/xarray/issues/2733 MDEyOklzc3VlQ29tbWVudDQ2MDE1MDEyMQ== ahmedshaaban1 15742456 2019-02-04T07:10:10Z 2019-02-04T07:11:01Z NONE

Thanks a lot @shoyer . It works. Regarding to the IndexVariable object, I found that the latP in the file that I am opening is a IndexVariable object, so I just did the same when I thought to write it. Thanks for the information.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Unable to construct indexVariable. 405487803
460105724 https://github.com/pydata/xarray/issues/2733#issuecomment-460105724 https://api.github.com/repos/pydata/xarray/issues/2733 MDEyOklzc3VlQ29tbWVudDQ2MDEwNTcyNA== shoyer 1217238 2019-02-04T00:59:33Z 2019-02-04T00:59:33Z MEMBER

Hi @ahmedshaaban1 -- the short answer is you mixed up the order of the constructor arguments. This should be xr.IndexVariable(latP.dims,latP.data,latP.attrs)

Note that normally you shouldn't need to create IndexVariable objects directly -- they are public API, but rather low level. Usually I recommend sticking to Dataset/DataArray objects: http://xarray.pydata.org/en/stable/internals.html#variable-objects

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Unable to construct indexVariable. 405487803

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