home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where issue = 762385879 and user = 12115839 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

  • BENR0 · 1 ✖

issue 1

  • xr.where not preserving attributes · 1 ✖

author_association 1

  • NONE 1
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
745155086 https://github.com/pydata/xarray/issues/4682#issuecomment-745155086 https://api.github.com/repos/pydata/xarray/issues/4682 MDEyOklzc3VlQ29tbWVudDc0NTE1NTA4Ng== BENR0 12115839 2020-12-15T09:08:52Z 2020-12-15T09:08:52Z NONE

Yes in this case I need the functionality to be able to specify an alternative value similar to np.where so DataArray.where does not help me in this instance. But nevertheless this is a helpful insight.

Actually I am probably not really qualified to answer your question about adding kwargs or getting the value from the options since I am not really familiar with xarray code. While searching for the reason/solution to my problem I also came across the issues you mentioned and then just had a quick glance at the code why xr.where does not keep the attributes.

Anyway as far as I can see if xr.where would just have a **kwargs argument not keep_attrs specifically this would not directly break anything but would allow to pass any keyword argument of apply_ufunc and it would just be "handed" down. On the other side I can see the advantage of the options since this would keep the handling of keeping attributes consistent with existing code.

Long story short; it would be nice for users to at least be able to have a choice to keep attributes with this kind of operations (I guess there are other operations which have the same problem) regardless of how it is implemented.

{
    "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 20.92ms · About: xarray-datasette