home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where author_association = "MEMBER" and issue = 762385879 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

  • keewis 1

issue 1

  • xr.where not preserving attributes · 1 ✖

author_association 1

  • MEMBER · 1 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
743452370 https://github.com/pydata/xarray/issues/4682#issuecomment-743452370 https://api.github.com/repos/pydata/xarray/issues/4682 MDEyOklzc3VlQ29tbWVudDc0MzQ1MjM3MA== keewis 14808389 2020-12-11T22:08:29Z 2020-12-12T23:09:11Z MEMBER

this also came up in #4141, where we proposed to work around this by using DataArray.where (as far as I can tell this doesn't work for you, though).

There are two issues here: first of all, by default DataArray.__eq__ removes the attributes, so without calling xr.set_options(keep_attrs=True) data == 1 won't keep the attributes (see also #3891).

However, even if we pass a xarray object with attributes, xr.where does not pass keep_attrs to apply_ufunc. Once it does the attributes will be propagated, but simply adding keep_attrs=True seems like a breaking change. Do we need to add a keep_attrs kwarg or get the value from OPTIONS["keep_attrs"]?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xr.where not preserving attributes 762385879

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