home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1514473763

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/7767#issuecomment-1514473763 https://api.github.com/repos/pydata/xarray/issues/7767 1514473763 IC_kwDOAMm_X85aRQkj 34276374 2023-04-19T10:08:52Z 2023-04-19T10:08:52Z NONE

Thanks for the replies

So while xr.where(cond, x, y) is semantically, "where condition is true, x, else y", da.where(cond, x) is "where condition is true da, else x".

The latter feels quite unintuitive to me. Is the reason they're different only for the mask example you provided? Where NaN is returned as the default 'x' value?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1674532233
Powered by Datasette · Queries took 0.622ms · About: xarray-datasette