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/2438#issuecomment-426329058,https://api.github.com/repos/pydata/xarray/issues/2438,426329058,MDEyOklzc3VlQ29tbWVudDQyNjMyOTA1OA==,5308236,2018-10-02T15:56:53Z,2018-10-02T15:56:53Z,NONE,I built a manual solution [in the stackoverflow thread](https://stackoverflow.com/a/52612073/2225200). Maybe this helps someone.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,363629186
https://github.com/pydata/xarray/issues/2438#issuecomment-424444423,https://api.github.com/repos/pydata/xarray/issues/2438,424444423,MDEyOklzc3VlQ29tbWVudDQyNDQ0NDQyMw==,5308236,2018-09-25T18:06:11Z,2018-09-26T13:58:02Z,NONE,"Thanks @shoyer,
Your comment helped me realize that at least part of the ""horribly slow"" probably stems from a DataArray with MultiIndex. The above code sample takes 5-6 seconds for 1000 `b` values. When stacking the DataArray beforehand with `d = d.stack(adim=['a'], bdim=['b'])`, it takes around 14 seconds.
However, both of these are unfortunately very slow compared to indexing in e.g. numpy or pandas.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,363629186
https://github.com/pydata/xarray/issues/2438#issuecomment-424432532,https://api.github.com/repos/pydata/xarray/issues/2438,424432532,MDEyOklzc3VlQ29tbWVudDQyNDQzMjUzMg==,1217238,2018-09-25T17:31:13Z,2018-09-25T17:31:13Z,MEMBER,"> This is however horribly slow for larger arrays.
The existing (1 variable) groupby code actually basically does this same loop. We could potentially speed things up by leveraging a tool like [numbagg](https://github.com/shoyer/numbagg/blob/master/numbagg/test/test_grouped.py) but nobody has gotten around to that yet.","{""total_count"": 2, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 1}",,363629186