home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 189481649 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 3

  • shoyer 1
  • matmel 1
  • stale[bot] 1

author_association 2

  • NONE 2
  • MEMBER 1

issue 1

  • Assigning several variables at once in a dataset · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
457436133 https://github.com/pydata/xarray/issues/1123#issuecomment-457436133 https://api.github.com/repos/pydata/xarray/issues/1123 MDEyOklzc3VlQ29tbWVudDQ1NzQzNjEzMw== stale[bot] 26384082 2019-01-25T02:46:50Z 2019-01-25T02:46:50Z NONE

In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity If this issue remains relevant, please comment here; otherwise it will be marked as closed automatically

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Assigning several variables at once in a dataset 189481649
260755031 https://github.com/pydata/xarray/issues/1123#issuecomment-260755031 https://api.github.com/repos/pydata/xarray/issues/1123 MDEyOklzc3VlQ29tbWVudDI2MDc1NTAzMQ== shoyer 1217238 2016-11-15T20:17:30Z 2016-11-15T20:17:35Z MEMBER

Compare the implementations of Dataset.__getitem__ and __setitem__: https://github.com/pydata/xarray/blob/master/xarray/core/dataset.py#L555-L584

So, this could definitely be made to work. It just isn't something that has been worked on yet.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Assigning several variables at once in a dataset 189481649
260744511 https://github.com/pydata/xarray/issues/1123#issuecomment-260744511 https://api.github.com/repos/pydata/xarray/issues/1123 MDEyOklzc3VlQ29tbWVudDI2MDc0NDUxMQ== matmel 6333189 2016-11-15T19:40:20Z 2016-11-15T19:40:20Z NONE

Ok, nevermind, I've re-read the documentation and I just checked that I need to use the update method. Thus, the last line should be replaced with:

python ds.update(ds[['varA', 'varB']] - ds[['varA', 'varB']].mean(dim='time'))

and it works as intended.

Probably that the way to assign several variables at once in a Dataset should be emphasized in the documentation with an example.

Thanks.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Assigning several variables at once in a dataset 189481649

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