home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 555526229

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/3546#issuecomment-555526229 https://api.github.com/repos/pydata/xarray/issues/3546 555526229 MDEyOklzc3VlQ29tbWVudDU1NTUyNjIyOQ== 10194086 2019-11-19T14:15:36Z 2019-11-19T14:15:36Z MEMBER

I think .loc does not take a boolean array for selection but the actual lon values you want to select. To select with a boolean array you would do:

python sel = da[0, 0] < mask da[0, 0][sel] If you want to use .loc you first need to get the longitude values to select by:

``` python sel_lon = da[0, 0].lon[sel] da[0, 0].loc[sel_lon]

```

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