home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where author_association = "MEMBER", issue = 228295383 and user = 6815844 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

  • fujiisoup · 2 ✖

issue 1

  • .sel does not keep selected coordinate value in case with MultiIndex · 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
301353831 https://github.com/pydata/xarray/issues/1408#issuecomment-301353831 https://api.github.com/repos/pydata/xarray/issues/1408 MDEyOklzc3VlQ29tbWVudDMwMTM1MzgzMQ== fujiisoup 6815844 2017-05-15T01:10:25Z 2017-05-15T01:10:25Z MEMBER

@benbovy Thanks for the comment.

Actually, I expected the following behavior python In [1]: ds.sel(x=2) Out[1]: <xarray.Dataset> Dimensions: (y: 2) Coordinates: * y (y) object 'a' 'b' x int64 2 Data variables: foo (y) int64 2 5 where the selected x is automatically converted to a scalar coordinate.

And also for the second issue, I expected something like python In [2]: ds.isel(yx=0) Out[2]: <xarray.Dataset> Dimensions: () Coordinates: y <U1 'a' x int64 1 Data variables: foo int64 1 both x and y become scalar coordinates.

Back to the first issue, I personally prefer to the automatic renaming because it enables the following chain methods, python ds.sel(x=2).isel(y=1) that might be intuitive especially for the hierarchic dimension structure.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  .sel does not keep selected coordinate value in case with MultiIndex 228295383
301303055 https://github.com/pydata/xarray/issues/1408#issuecomment-301303055 https://api.github.com/repos/pydata/xarray/issues/1408 MDEyOklzc3VlQ29tbWVudDMwMTMwMzA1NQ== fujiisoup 6815844 2017-05-14T10:19:15Z 2017-05-14T10:19:15Z MEMBER

@shoyer Thanks for the information. (Sorry for my inaccurate ipython output)

Another related issue is

python In[3]: ds.isel(yx=1) Out[3]: <xarray.Dataset> Dimensions: () Coordinates: yx object ('a', 1) Data variables: foo int64 1 where MultiIndex structure is totally gone. (ds.isel(yx=[0, 1]) works perfectly.)

I am now looking into the code. Do you guys have any idea to fix them? I am thinking to modify Index.remap_label_indexers so that it also returns selected_dims containing names of dims that should be converted to scalar coordinates.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  .sel does not keep selected coordinate value in case with MultiIndex 228295383

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