home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 204527062

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/pull/815#issuecomment-204527062 https://api.github.com/repos/pydata/xarray/issues/815 204527062 MDEyOklzc3VlQ29tbWVudDIwNDUyNzA2Mg== 1217238 2016-04-01T19:08:46Z 2016-04-01T19:10:15Z MEMBER

@MaximilianR In this example I used where to produce a map:

```

ds.states.where(ds.states == state_ids['California']).plot() ```

If I used sel_where, the plot would be automatically trimmed. That's the main usecase here. I don't think there is an equivalent shortcut in pandas.

@fmaussion that's correct that you cannot do lazy computation with the result of nonzero on a dask array. However, computing nonzero itself could be an expensive operation if the mask is large, and we could do that with dask.

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