home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 569650603

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/3656#issuecomment-569650603 https://api.github.com/repos/pydata/xarray/issues/3656 569650603 MDEyOklzc3VlQ29tbWVudDU2OTY1MDYwMw== 14808389 2019-12-30T11:18:12Z 2019-12-30T13:09:03Z MEMBER

the reason for the exception is that you are trying to convert the input data (a 4D numpy.ndarray of shape 324 x 180 x 360 x 59) to a pandas.Series which only takes 1D data. You will have to rewrite your function to accept a 4D array and reduce it to a 3D array along the given axis (see numpy functions like std or mean).

We should definitely improve the documentation, right now the docstring of DataArrayRolling.reduce and DatasetRolling.reduce is not really clear on the requirements for the reduce function and the examples don't show the use of custom functions.

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