home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 902257325

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/pull/4540#issuecomment-902257325 https://api.github.com/repos/pydata/xarray/issues/4540 902257325 IC_kwDOAMm_X841x1qt 2448579 2021-08-19T21:22:52Z 2021-08-19T21:22:52Z MEMBER

Hi @tlogan2000 , this is moving forward but slowly.

The good news is that I got resampling working this week (at least for some minimal test cases). It works by rechunking so that every chunk boundary lines up with a group boundary, and then applies numpy_groupies blockwise.

https://github.com/dcherian/dask_groupby/blob/8a30c4b20f23acacfc3b53dbeab2a7b268ecd3fc/dask_groupby/xarray.py#L268-L272

You can test it out with something like this python dask_groupby.xarray.resample_reduce(ds.resample(time="M"), func="mean")

For general groupby use python dask_groupby.xarray.xarray_reduce(...) This still fails a few xarray tests but a lot of them pass! Let me know how it goes and please file bug reports over at the dask_groupby repo if you find any.

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