home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 377306186

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/2028#issuecomment-377306186 https://api.github.com/repos/pydata/xarray/issues/2028 377306186 MDEyOklzc3VlQ29tbWVudDM3NzMwNjE4Ng== 5635139 2018-03-29T17:12:21Z 2018-03-29T17:12:21Z MEMBER

I agree this is harder that it should be.

Here's one way: ```python

In [28]: a.where(a.currency=='EUR', drop=True) Out[28]: <xarray.DataArray (country: 2)> array([20., 30.]) Coordinates: * country (country) <U7 'Germany' 'France' currency (country) <U3 'EUR' 'EUR' ```

I'm not sure whether .sel should work for non-IndexVariables - thoughts?

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