issues: 409854736
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
409854736 | MDU6SXNzdWU0MDk4NTQ3MzY= | 2768 | [Bug] Reduce fails when no axis given | 35968931 | closed | 0 | 1 | 2019-02-13T15:16:45Z | 2019-02-19T06:13:00Z | 2019-02-19T06:12:59Z | MEMBER |
```python import numpy as np from xarray import DataArray da = DataArray(np.array([[1, 3, 3], [2, 1, 5]])) def total_sum(data): return np.sum(data.flatten()) sum = da.reduce(total_sum) print(sum) ``` This should print a dataarray with just the number 15 in it, but instead it throws the error
This contradicts what the docstring of The problem is that in |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2768/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |