{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/11918","repository_url":"https://api.github.com/repos/pydata/pandas","labels_url":"https://api.github.com/repos/pydata/pandas/issues/11918/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/11918/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/11918/events","html_url":"https://github.com/pydata/pandas/pull/11918","id":124108963,"number":11918,"title":"BUG in DataFrameGroupBy.rank raising an obscure TypeError","user":{"login":"nbonnotte","id":9929982,"avatar_url":"https://avatars.githubusercontent.com/u/9929982?v=3","gravatar_id":"","url":"https://api.github.com/users/nbonnotte","html_url":"https://github.com/nbonnotte","followers_url":"https://api.github.com/users/nbonnotte/followers","following_url":"https://api.github.com/users/nbonnotte/following{/other_user}","gists_url":"https://api.github.com/users/nbonnotte/gists{/gist_id}","starred_url":"https://api.github.com/users/nbonnotte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbonnotte/subscriptions","organizations_url":"https://api.github.com/users/nbonnotte/orgs","repos_url":"https://api.github.com/users/nbonnotte/repos","events_url":"https://api.github.com/users/nbonnotte/events{/privacy}","received_events_url":"https://api.github.com/users/nbonnotte/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Error%20Reporting","name":"Error Reporting","color":"ffa0ff"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Groupby","name":"Groupby","color":"729FCF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-12-28T19:11:55Z","updated_at":"2016-03-13T10:20:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pydata/pandas/pulls/11918","html_url":"https://github.com/pydata/pandas/pull/11918","diff_url":"https://github.com/pydata/pandas/pull/11918.diff","patch_url":"https://github.com/pydata/pandas/pull/11918.patch"},"body":"Fix issue #11759\r\n\r\nTwo things:\r\n\r\n1. `Series.rank` and `DataFrame.rank` have been moved to `generic.py` and get the same signature [done with PR #11924]\r\n\r\n2. It can happen that aggregate functions are applied to grouped object in a recursive way. Instead of raising a plain `ValueError` when that fails, and catching it afterwards indistinctly, I propose to raise an `_ErrorContainer` exception containing the last meaningful error to have been raised. Thus, when everything else has failed, we can still recover a meaningful exception and throw it back at the user."},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/195929152","html_url":"https://github.com/pydata/pandas/pull/11918#issuecomment-195929152","issue_url":"https://api.github.com/repos/pydata/pandas/issues/11918","id":195929152,"user":{"login":"nbonnotte","id":9929982,"avatar_url":"https://avatars.githubusercontent.com/u/9929982?v=3","gravatar_id":"","url":"https://api.github.com/users/nbonnotte","html_url":"https://github.com/nbonnotte","followers_url":"https://api.github.com/users/nbonnotte/followers","following_url":"https://api.github.com/users/nbonnotte/following{/other_user}","gists_url":"https://api.github.com/users/nbonnotte/gists{/gist_id}","starred_url":"https://api.github.com/users/nbonnotte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbonnotte/subscriptions","organizations_url":"https://api.github.com/users/nbonnotte/orgs","repos_url":"https://api.github.com/users/nbonnotte/repos","events_url":"https://api.github.com/users/nbonnotte/events{/privacy}","received_events_url":"https://api.github.com/users/nbonnotte/received_events","type":"User","site_admin":false},"created_at":"2016-03-13T10:20:53Z","updated_at":"2016-03-13T10:20:53Z","body":"@jreback done (and it's green)"}}