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/4796#issuecomment-824242833,https://api.github.com/repos/pydata/xarray/issues/4796,824242833,MDEyOklzc3VlQ29tbWVudDgyNDI0MjgzMw==,5635139,2021-04-21T17:46:02Z,2021-04-21T17:47:45Z,MEMBER,"The specific case is closed by #5184, thanks to @dcherian for spotting.
Shall we change this issue into the general case highlighted by @keewis ?
Possibly `_unary_op` could do `apply_ufunc` in the same way that #5184 does? (But I haven't thought much about this — requires proper consideration)","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,784042442
https://github.com/pydata/xarray/issues/4796#issuecomment-812868025,https://api.github.com/repos/pydata/xarray/issues/4796,812868025,MDEyOklzc3VlQ29tbWVudDgxMjg2ODAyNQ==,14808389,2021-04-03T13:49:25Z,2021-04-03T13:49:25Z,MEMBER,"the issue is that we pass `*args` and `**kwargs` unmodified to `dask`, which obviously won't work (if `isinstance(x.data, np.ndarray) == True` it will be casted to `numpy` using `asarray`, which is why that succeeds).
I think this means that we should check for xarray objects in `args` / `kwargs` in `{DataArray,Dataset,Variable}._unary_op` and extract the data before calling `f` (which might be easier to implement if we stop injecting `numpy` methods).","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,784042442
https://github.com/pydata/xarray/issues/4796#issuecomment-758563789,https://api.github.com/repos/pydata/xarray/issues/4796,758563789,MDEyOklzc3VlQ29tbWVudDc1ODU2Mzc4OQ==,10194086,2021-01-12T10:32:39Z,2021-01-12T10:32:39Z,MEMBER,`x.clip(min=x.data)` works so passing a `DataArray` is the problem. I am honestly not sure what we usually do - pass a `DataArray` or `.data` to the function.,"{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,784042442