home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1277226702

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/7157#issuecomment-1277226702 https://api.github.com/repos/pydata/xarray/issues/7157 1277226702 IC_kwDOAMm_X85MIO7O 43316012 2022-10-13T08:22:22Z 2022-10-13T08:23:43Z COLLABORATOR

Thank you for the report. If you read the documentation of DataArray.reduce you will find that func need to be:

Function which can be called in the form f(x, axis=axis, **kwargs) to return the result of reducing an np.ndarray over an integer valued axis.

So it operates on numpy arrays and not xarray DataArrays.

So try using np.cumsum instead.

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