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/7227#issuecomment-1292692904,https://api.github.com/repos/pydata/xarray/issues/7227,1292692904,IC_kwDOAMm_X85NDO2o,43316012,2022-10-26T21:50:02Z,2022-10-26T21:50:02Z,COLLABORATOR,"I think this PEP is really more important for i.e. numpy.
Something like `array.sum(axis=1)` is more error prone (1 instead of -1 or 2) than xarrays `da.sum(""time"")`.
But yes, it is mainly for consumers.
Additionally, since xarray has its fancy broadcasting I am not sure that even with a working system we would get meaningful errors from static typecheckers.
In numpy `Array[Height] + Array[Width]` would raise but in xarray this just works...","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1424215477
https://github.com/pydata/xarray/issues/7227#issuecomment-1292626419,https://api.github.com/repos/pydata/xarray/issues/7227,1292626419,IC_kwDOAMm_X85NC-nz,5635139,2022-10-26T20:38:25Z,2022-10-26T20:38:25Z,MEMBER,"IIUC, and I always feel like a newcomer on this stuff — this could be useful for xarray _consumers_, who could write `-> DataArray[Time, Width, Height]`?
But without those being generic and ""programmable"" — i.e. being able to describe that `.mean(""width"")` removes the axis called `width`, it's not that useful for xarray itself?
Is that right?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1424215477
https://github.com/pydata/xarray/issues/7227#issuecomment-1292252691,https://api.github.com/repos/pydata/xarray/issues/7227,1292252691,IC_kwDOAMm_X85NBjYT,35968931,2022-10-26T15:48:36Z,2022-10-26T15:53:14Z,MEMBER,"Well that's frustrating - I didn't see that.
They also mention that if PEP 637 hadn't been rejected there would be more use, which is ironic because we also wanted PEP 637 for indexing (like `da[time=slice(5, 10)]`).","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1424215477
https://github.com/pydata/xarray/issues/7227#issuecomment-1292228024,https://api.github.com/repos/pydata/xarray/issues/7227,1292228024,IC_kwDOAMm_X85NBdW4,43316012,2022-10-26T15:30:39Z,2022-10-26T15:30:39Z,COLLABORATOR,"So the only way I could see is a tuple of dimension names, and even there we will have problems because the order does not really matter for us.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1424215477
https://github.com/pydata/xarray/issues/7227#issuecomment-1292221168,https://api.github.com/repos/pydata/xarray/issues/7227,1292221168,IC_kwDOAMm_X85NBbrw,43316012,2022-10-26T15:25:33Z,2022-10-26T15:25:33Z,COLLABORATOR,"Interesting idea.
But see https://peps.python.org/pep-0646/#appendix-b-shaped-types-vs-named-axes
That basically says that named axes are not supported?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1424215477