home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 290491964

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/1341#issuecomment-290491964 https://api.github.com/repos/pydata/xarray/issues/1341 290491964 MDEyOklzc3VlQ29tbWVudDI5MDQ5MTk2NA== 4295853 2017-03-30T17:58:31Z 2017-03-30T17:58:31Z CONTRIBUTOR

The script (e.g., on 3.5) should return something like ```python In [1]: import xarray as xr

In [2]: import numpy as np

In [3]: da = xr.DataArray(np.random.rand(100,10), dims=['nCells','nVertLevels'])

In [4]: mask = xr.DataArray(np.zeros((100,), dtype='bool'), dims='nCells')

In [5]: da.where(mask, drop=True)

Out[6]: <xarray.DataArray (nCells: 0, nVertLevels: 10)> array([], shape=(0, 10), dtype=float64) Dimensions without coordinates: nCells, nVertLevels ```

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