issues: 309098246
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
309098246 | MDU6SXNzdWUzMDkwOTgyNDY= | 2017 | np.minimum.accumulate(da) doesn't work | 7441788 | open | 0 | 7 | 2018-03-27T19:15:06Z | 2021-07-04T03:20:18Z | CONTRIBUTOR | Code Sample, a copy-pastable example if possible``` In [1]: import numpy as np In [2]: import xarray as xr In [3]: np.minimum.accumulate(np.array([3,2,4,1])) Out[3]: array([3, 2, 2, 1], dtype=int32) In [4]: np.minimum.accumulate(xr.DataArray([3,2,4,1]))NotImplementedError Traceback (most recent call last)
<ipython-input-7-7205433fb365> in <module>()
----> 1 np.minimum.accumulate(xr.DataArray([3,2,4,1]))
~\Anaconda3\lib\site-packages\xarray\core\arithmetic.py in array_ufunc(self, ufunc, method, inputs, *kwargs)
49 'alternative, consider explicitly converting xarray objects '
50 'to NumPy arrays (e.g., with Problem descriptionI would expect this to work, like Expected Output
Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2017/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |