issue_comments: 566454958
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/3632#issuecomment-566454958 | https://api.github.com/repos/pydata/xarray/issues/3632 | 566454958 | MDEyOklzc3VlQ29tbWVudDU2NjQ1NDk1OA== | 10194086 | 2019-12-17T09:19:50Z | 2019-12-17T09:19:50Z | MEMBER | Maybe the code here does something similar to what you want: ``` python import numpy as np import xarray as xr from xarray.core import missing as xrmissing data = [0, -2, -2, -2, 0, -2, -2, 0] da = xr.DataArray(data, coords=dict(time=np.arange(8)), dims=["time"]) dlt = da < 0 xrmissing._get_nan_block_lengths(dlt.where(~ dlt), "time", dlt.time) ``` |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
538809911 |