home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 218358372

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/422#issuecomment-218358372 https://api.github.com/repos/pydata/xarray/issues/422 218358372 MDEyOklzc3VlQ29tbWVudDIxODM1ODM3Mg== 2443309 2016-05-11T04:24:05Z 2016-05-11T04:24:05Z MEMBER

@MaximilianR has suggested a groupby/rolling-like interface to weighted reductions.

``` Python da.weighted(weights=ds.dim).mean()

or maybe

da.weighted(time=days_per_month(da.time)).mean() ```

I really like this idea, as does @shoyer. I'm going to close my PR in hopes of this becoming reality.

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