home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 260744511

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/1123#issuecomment-260744511 https://api.github.com/repos/pydata/xarray/issues/1123 260744511 MDEyOklzc3VlQ29tbWVudDI2MDc0NDUxMQ== 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
}
  189481649
Powered by Datasette · Queries took 0.743ms · About: xarray-datasette