home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

where issue = 181881219 and user = 1217238 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

These facets timed out: author_association

user 1

  • shoyer · 2 ✖

issue 1

  • Dataset.groupby() doesn't preserve variables order · 2 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
253936119 https://github.com/pydata/xarray/issues/1042#issuecomment-253936119 https://api.github.com/repos/pydata/xarray/issues/1042 MDEyOklzc3VlQ29tbWVudDI1MzkzNjExOQ== shoyer 1217238 2016-10-14T22:35:56Z 2016-10-14T22:35:56Z MEMBER

So the tricky part here is that it's not obvious what is breaking here. One clue is that reducing doesn't seem to be necessary -- I can reproduce this just with applying an identity transform:

``` In [6]: identity = lambda x: x

In [7]: ds.groupby('t').apply(identity) Out[7]: <xarray.Dataset> Dimensions: (t: 10) Coordinates: * t (t) int64 0 1 2 3 4 5 6 7 8 9 Data variables: a (t) int64 0 1 2 3 4 5 6 7 8 9 c (t) int64 0 1 2 3 4 5 6 7 8 9 b (t) int64 0 1 2 3 4 5 6 7 8 9 ```

Actually, it looks like it's probably a concat bug:

``` In [17]: gb = ds.groupby('t')

In [18]: grouped = [v for _, v in gb]

In [20]: [list(g.data_vars) for g in grouped] Out[20]: [['a', 'b', 'c'], ['a', 'b', 'c'], ['a', 'b', 'c'], ['a', 'b', 'c'], ['a', 'b', 'c'], ['a', 'b', 'c'], ['a', 'b', 'c'], ['a', 'b', 'c'], ['a', 'b', 'c'], ['a', 'b', 'c']]

In [21]: xr.concat(grouped, dim='t') Out[21]: <xarray.Dataset> Dimensions: (t: 10) Coordinates: * t (t) int64 0 1 2 3 4 5 6 7 8 9 Data variables: a (t) int64 0 1 2 3 4 5 6 7 8 9 c (t) int64 0 1 2 3 4 5 6 7 8 9 b (t) int64 0 1 2 3 4 5 6 7 8 9 ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Dataset.groupby() doesn't preserve variables order 181881219
252505663 https://github.com/pydata/xarray/issues/1042#issuecomment-252505663 https://api.github.com/repos/pydata/xarray/issues/1042 MDEyOklzc3VlQ29tbWVudDI1MjUwNTY2Mw== shoyer 1217238 2016-10-09T19:06:39Z 2016-10-09T19:06:39Z MEMBER

This is probably a bug. Usually, we're pretty careful to always use OrderedDict internally for exactly this reason. Can you give a reproducible example?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Dataset.groupby() doesn't preserve variables order 181881219

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