issues: 308030789
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
308030789 | MDU6SXNzdWUzMDgwMzA3ODk= | 2010 | rolling.mean vs rolling.construct.mean | 10194086 | closed | 0 | 8 | 2018-03-23T13:34:05Z | 2020-03-26T02:02:59Z | 2020-03-26T02:02:59Z | MEMBER | Code Sample, a copy-pastable example if possible```python import xarray as xr import numpy as np x = np.arange(4.) ds = xr.DataArray(x, dims=('dim', )) ds.rolling(dim=3, center=True).mean() RESULT: array([nan, 1., 2., nan])ds.rolling(dim=3, center=True).construct('window').mean('window') RESULT: array([0.5, 1. , 2. , 2.5])``` Problem description
Expected OutputI would expect both ways to yield the same result. Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2010/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |