home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

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

issue 1

  • Broadcast error when dataset is recombined after a stack/groupby/apply/unstack sequence · 7 ✖

author_association 1

  • MEMBER · 7 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
248415522 https://github.com/pydata/xarray/issues/873#issuecomment-248415522 https://api.github.com/repos/pydata/xarray/issues/873 MDEyOklzc3VlQ29tbWVudDI0ODQxNTUyMg== shoyer 1217238 2016-09-20T19:55:55Z 2016-09-20T19:55:55Z MEMBER

Great, glad that worked!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Broadcast error when dataset is recombined after a stack/groupby/apply/unstack sequence 158958801
248345053 https://github.com/pydata/xarray/issues/873#issuecomment-248345053 https://api.github.com/repos/pydata/xarray/issues/873 MDEyOklzc3VlQ29tbWVudDI0ODM0NTA1Mw== shoyer 1217238 2016-09-20T15:54:02Z 2016-09-20T15:54:02Z MEMBER

GroupBy is working as intended here. ds.groupby('something').apply(func) calls func on objects of the same type as ds. If you group a Dataset, each time you apply to a Dataset, too.

You can certainly still use np.convolve, but you'll need to manually apply it to numpy arrays extracted from a Dataset and then rebuild another Dataset or DataArray.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Broadcast error when dataset is recombined after a stack/groupby/apply/unstack sequence 158958801
242951236 https://github.com/pydata/xarray/issues/873#issuecomment-242951236 https://api.github.com/repos/pydata/xarray/issues/873 MDEyOklzc3VlQ29tbWVudDI0Mjk1MTIzNg== shoyer 1217238 2016-08-28T01:53:14Z 2016-08-28T01:53:14Z MEMBER

The first issue is an xarray bug. See #989 for a fix.

The work around is not to provide an encoded dtype if the variable already has the dtype you want.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Broadcast error when dataset is recombined after a stack/groupby/apply/unstack sequence 158958801
242950771 https://github.com/pydata/xarray/issues/873#issuecomment-242950771 https://api.github.com/repos/pydata/xarray/issues/873 MDEyOklzc3VlQ29tbWVudDI0Mjk1MDc3MQ== shoyer 1217238 2016-08-28T01:37:44Z 2016-08-28T01:37:44Z MEMBER

The second issue is that compute_function is being called on an xarray.Dataset, so np.convolve(data, data * 2) is attempting to convolve two xarray Datasets. NumPy gives a pretty unhelpful error message. (If only we had static typing in Python...)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Broadcast error when dataset is recombined after a stack/groupby/apply/unstack sequence 158958801
241625354 https://github.com/pydata/xarray/issues/873#issuecomment-241625354 https://api.github.com/repos/pydata/xarray/issues/873 MDEyOklzc3VlQ29tbWVudDI0MTYyNTM1NA== shoyer 1217238 2016-08-23T04:42:41Z 2016-08-23T04:42:41Z MEMBER

Could you please share a data file and/or code which I can run to reproduce each of these issues?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Broadcast error when dataset is recombined after a stack/groupby/apply/unstack sequence 158958801
236092858 https://github.com/pydata/xarray/issues/873#issuecomment-236092858 https://api.github.com/repos/pydata/xarray/issues/873 MDEyOklzc3VlQ29tbWVudDIzNjA5Mjg1OA== shoyer 1217238 2016-07-29T04:38:36Z 2016-07-29T04:38:36Z MEMBER

Fixed by #867

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Broadcast error when dataset is recombined after a stack/groupby/apply/unstack sequence 158958801
224484803 https://github.com/pydata/xarray/issues/873#issuecomment-224484803 https://api.github.com/repos/pydata/xarray/issues/873 MDEyOklzc3VlQ29tbWVudDIyNDQ4NDgwMw== shoyer 1217238 2016-06-08T04:34:46Z 2016-06-08T04:34:46Z MEMBER

Thanks for raising this one on GitHub (after I forgot to respond on the mailing list!). I have a partial fix for this in https://github.com/pydata/xarray/pull/867, but we clearly need some more tests to verify that groupby with a multi-index works properly.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Broadcast error when dataset is recombined after a stack/groupby/apply/unstack sequence 158958801

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