{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/8342","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/8342/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/8342/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/8342/events","html_url":"https://github.com/numpy/numpy/issues/8342","id":193391277,"number":8342,"title":"ufunc.reduce(..., where=)","user":{"login":"anntzer","id":1322974,"avatar_url":"https://avatars.githubusercontent.com/u/1322974?v=3","gravatar_id":"","url":"https://api.github.com/users/anntzer","html_url":"https://github.com/anntzer","followers_url":"https://api.github.com/users/anntzer/followers","following_url":"https://api.github.com/users/anntzer/following{/other_user}","gists_url":"https://api.github.com/users/anntzer/gists{/gist_id}","starred_url":"https://api.github.com/users/anntzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anntzer/subscriptions","organizations_url":"https://api.github.com/users/anntzer/orgs","repos_url":"https://api.github.com/users/anntzer/repos","events_url":"https://api.github.com/users/anntzer/events{/privacy}","received_events_url":"https://api.github.com/users/anntzer/received_events","type":"User","site_admin":false},"labels":[{"id":6359352,"url":"https://api.github.com/repos/numpy/numpy/labels/13%20-%20Wish%20List","name":"13 - Wish List","color":"fef2c0","default":false},{"id":16917029,"url":"https://api.github.com/repos/numpy/numpy/labels/component:%20numpy.core","name":"component: numpy.core","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-05T01:09:28Z","updated_at":"2016-12-11T17:03:02Z","closed_at":null,"body":"It would be nice if `ufunc.reduce` gained a `where=...` kwarg (taking either a boolean mask, or a list of indices).  This would avoid having to construct an intermediate array in expressions such as `np.max(t[t > 0])`.\r\n\r\nIn particular I wonder whether this would cover most of the difference in the performance of `nansum` (and friends) with `bottleneck`."},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/266293388","html_url":"https://github.com/numpy/numpy/issues/8342#issuecomment-266293388","issue_url":"https://api.github.com/repos/numpy/numpy/issues/8342","id":266293388,"user":{"login":"anntzer","id":1322974,"avatar_url":"https://avatars.githubusercontent.com/u/1322974?v=3","gravatar_id":"","url":"https://api.github.com/users/anntzer","html_url":"https://github.com/anntzer","followers_url":"https://api.github.com/users/anntzer/followers","following_url":"https://api.github.com/users/anntzer/following{/other_user}","gists_url":"https://api.github.com/users/anntzer/gists{/gist_id}","starred_url":"https://api.github.com/users/anntzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anntzer/subscriptions","organizations_url":"https://api.github.com/users/anntzer/orgs","repos_url":"https://api.github.com/users/anntzer/repos","events_url":"https://api.github.com/users/anntzer/events{/privacy}","received_events_url":"https://api.github.com/users/anntzer/received_events","type":"User","site_admin":false},"created_at":"2016-12-11T17:03:02Z","updated_at":"2016-12-11T17:03:02Z","body":"Sounds reasonable, although we'd need to figure it how to handle the case where axis is passed and the mask has inconsistent sizes (leading to a ragged array).\r\nMaaked arrays could be rewritten to use this mechanism, yes."}}
{"actor":{"display_login":"anntzer"}}