home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 375676323

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/2010#issuecomment-375676323 https://api.github.com/repos/pydata/xarray/issues/2010 375676323 MDEyOklzc3VlQ29tbWVudDM3NTY3NjMyMw== 6815844 2018-03-23T14:07:42Z 2018-03-23T14:07:42Z MEMBER

Hi, @mathause. Thanks for reporting.

I agree that this behavior is a little surprising, but this is something expected. The difference is not skipna=True (both use this), but actually in min_periods. If you specify min_periods=1, then the results become identical. python In [7]: ds.rolling(dim=3, center=True, min_periods=1).mean() Out[7]: <xarray.DataArray (dim: 4)> array([0.5, 1. , 2. , 2.5]) Dimensions without coordinates: dim

I am not sure how we can make both the behaviors the same with keeping the generality of construct method.

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