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/pull/7424#issuecomment-1516345065,https://api.github.com/repos/pydata/xarray/issues/7424,1516345065,IC_kwDOAMm_X85aYZbp,85085,2023-04-20T13:37:13Z,2023-04-20T13:37:13Z,CONTRIBUTOR,Related issue: https://github.com/data-apis/array-api/issues/621,"{""total_count"": 1, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 1}",,1522810384
https://github.com/pydata/xarray/pull/7424#issuecomment-1471758792,https://api.github.com/repos/pydata/xarray/issues/7424,1471758792,IC_kwDOAMm_X85XuUHI,85085,2023-03-16T11:15:33Z,2023-03-16T11:15:33Z,CONTRIBUTOR,"I was hoping https://github.com/data-apis/array-api-compat might help with this, but I'm not sure it does...","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1522810384
https://github.com/pydata/xarray/pull/7424#issuecomment-1373979208,https://api.github.com/repos/pydata/xarray/issues/7424,1373979208,IC_kwDOAMm_X85R5UJI,14371165,2023-01-06T18:18:56Z,2023-01-15T16:09:05Z,MEMBER,"The array api standard doesn't define any [`nan*`-functions](https://data-apis.org/array-api/latest/API_specification/statistical_functions.html).
xarray pretty much always defaults to using `nan*`-function. :(
So any time an array has a `__array_namespace__` we have to use our own nan-solution, like for `.sum`:
https://github.com/pydata/xarray/blob/d6d24507793af9bcaed79d7f8d3ac910e176f1ce/xarray/core/duck_array_ops.py#L288-L295
Any thoughts? Are there any clever ways to handle the aggregations with NaNs in a generic way?
edit: numpy implementations:
https://github.com/numpy/numpy/blob/main/numpy/lib/nanfunctions.py","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1522810384