home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 620797019

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/4013#issuecomment-620797019 https://api.github.com/repos/pydata/xarray/issues/4013 620797019 MDEyOklzc3VlQ29tbWVudDYyMDc5NzAxOQ== 3460034 2020-04-28T19:03:33Z 2020-04-28T19:03:33Z CONTRIBUTOR

Does the drop argument on the .where() method satisfy your needs? For example,

python ds.where((ds.y >= 30) & (ds.y <= 50), drop=True)

reduces the shape of the foo variable to (4, 3), as desired.

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