home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where author_association = "MEMBER" and issue = 220533356 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
  • benbovy 1

issue 1

  • Setting attributes to multi-index coordinate · 3 ✖

author_association 1

  • MEMBER · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
890133782 https://github.com/pydata/xarray/issues/1366#issuecomment-890133782 https://api.github.com/repos/pydata/xarray/issues/1366 IC_kwDOAMm_X841Dl0W benbovy 4160723 2021-07-30T20:21:48Z 2021-07-30T20:21:48Z MEMBER

5636 is a 1st step towards representing multi-index levels in separate Variable objects having their own user-defined attributes. We'll also be able in theory to propagate the attributes through operations like sel and maybe other operations like alignment.

The features added in #5636 will be integrated in a follow-up PR.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Setting attributes to multi-index coordinate 220533356
471766745 https://github.com/pydata/xarray/issues/1366#issuecomment-471766745 https://api.github.com/repos/pydata/xarray/issues/1366 MDEyOklzc3VlQ29tbWVudDQ3MTc2Njc0NQ== shoyer 1217238 2019-03-11T22:34:17Z 2019-03-11T22:34:17Z MEMBER

This will be eventually fixed as part of https://github.com/pydata/xarray/issues/1603

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Setting attributes to multi-index coordinate 220533356
292847045 https://github.com/pydata/xarray/issues/1366#issuecomment-292847045 https://api.github.com/repos/pydata/xarray/issues/1366 MDEyOklzc3VlQ29tbWVudDI5Mjg0NzA0NQ== shoyer 1217238 2017-04-10T04:27:02Z 2017-04-10T04:27:02Z MEMBER

This is a little tricky: there's only a single array Variable object (the MultiIndex), so we can't save attrs on any of the levels. But xarray doesn't raise an error in this case, because it's assigning to the temporary mda['band'] object, which immediately gets thrown away. There would be the same issue if you tried to assign an attribute to ds['time.dayofyear'].

I don't think Python syntax gives us any good options for identifying these cases. It's essentially the same problem as assigning to an indexing result, e.g., ds.sel(...).attrs = ..., though it's less obvious here since you're doing indexing, not a method call.

At the very least we could document that this doesn't work.

CC @benbovy in case he has any other ideas.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Setting attributes to multi-index coordinate 220533356

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