issues: 512879550
This data as json
| id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 512879550 | MDU6SXNzdWU1MTI4Nzk1NTA= | 3452 | [feature request] __iter__() for rolling-window on datasets | 1200058 | open | 0 | 2 | 2019-10-26T20:08:06Z | 2021-02-18T21:41:58Z | NONE | Currently, rolling() on a dataset does not return an iterator: MCVE Code Sample```python arr = xr.DataArray(np.arange(0, 7.5, 0.5).reshape(3, 5), dims=('x', 'y')) r = arr.to_dataset(name="test").rolling(y=3)
for label, arr_window in r:
print(label)
TypeError Traceback (most recent call last) <ipython-input-12-b1703cb71c1e> in <module> 3 4 r = arr.to_dataset(name="test").rolling(y=3) ----> 5 for label, arr_window in r: 6 print(label) TypeError: 'DatasetRolling' object is not iterable ``` Output of
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/3452/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
13221727 | issue |