{"action":"closed","issue":{"url":"https://api.github.com/repos/xray/xray/issues/503","labels_url":"https://api.github.com/repos/xray/xray/issues/503/labels{/name}","comments_url":"https://api.github.com/repos/xray/xray/issues/503/comments","events_url":"https://api.github.com/repos/xray/xray/issues/503/events","html_url":"https://github.com/xray/xray/issues/503","id":98250388,"number":503,"title":"Add \"where\" method copied from pandas","user":{"login":"shoyer","id":1217238,"avatar_url":"https://avatars.githubusercontent.com/u/1217238?v=3","gravatar_id":"","url":"https://api.github.com/users/shoyer","html_url":"https://github.com/shoyer","followers_url":"https://api.github.com/users/shoyer/followers","following_url":"https://api.github.com/users/shoyer/following{/other_user}","gists_url":"https://api.github.com/users/shoyer/gists{/gist_id}","starred_url":"https://api.github.com/users/shoyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoyer/subscriptions","organizations_url":"https://api.github.com/users/shoyer/orgs","repos_url":"https://api.github.com/users/shoyer/repos","events_url":"https://api.github.com/users/shoyer/events{/privacy}","received_events_url":"https://api.github.com/users/shoyer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xray/xray/labels/API%20design","name":"API design","color":"84b6eb"},{"url":"https://api.github.com/repos/xray/xray/labels/enhancement","name":"enhancement","color":"207de5"},{"url":"https://api.github.com/repos/xray/xray/labels/pandas-like","name":"pandas-like","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-30T19:57:26Z","updated_at":"2015-08-01T20:56:31Z","closed_at":"2015-08-01T20:56:31Z","body":"Instead of writing:\r\n`(ds * (ds > 7)).sum() / (ds > 7).sum()`\r\n\r\nIt would be nice to be able to write:\r\n`ds.where(ds > 7).mean()`\r\n\r\nFor more examples, see:\r\nhttp://pandas.pydata.org/pandas-docs/stable/indexing.html#the-where-method-and-masking\r\n\r\nThis came up on the mailing list recently:\r\nhttps://groups.google.com/forum/#!topic/xray-dev/mEo88uGl8g8\r\n"}}