home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1274963421

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/7152#issuecomment-1274963421 https://api.github.com/repos/pydata/xarray/issues/7152 1274963421 IC_kwDOAMm_X85L_mXd 2448579 2022-10-11T16:27:15Z 2022-10-11T16:30:32Z MEMBER

Thanks @patrick-naylor !

Instead of using Dataset.reduce I think we want something like python def cumsum(..., dim): return xr.apply_ufunc( np.cumsum if skipna else np.nancumsum, obj, input_core_dims=[dim], output_core_dims=[dim], kwargs={"axis": -1}, ) # now transpose dimensions back to input order

to fix #6528.

At the moment, this should also work on GroupBy objects quite nicely.

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