{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/11189","labels_url":"https://api.github.com/repos/pydata/pandas/issues/11189/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/11189/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/11189/events","html_url":"https://github.com/pydata/pandas/issues/11189","id":108401278,"number":11189,"title":"BUG: groupby().size gives casting error on 32 bit platform","user":{"login":"jorisvandenbossche","id":1020496,"avatar_url":"https://avatars.githubusercontent.com/u/1020496?v=3","gravatar_id":"","url":"https://api.github.com/users/jorisvandenbossche","html_url":"https://github.com/jorisvandenbossche","followers_url":"https://api.github.com/users/jorisvandenbossche/followers","following_url":"https://api.github.com/users/jorisvandenbossche/following{/other_user}","gists_url":"https://api.github.com/users/jorisvandenbossche/gists{/gist_id}","starred_url":"https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorisvandenbossche/subscriptions","organizations_url":"https://api.github.com/users/jorisvandenbossche/orgs","repos_url":"https://api.github.com/users/jorisvandenbossche/repos","events_url":"https://api.github.com/users/jorisvandenbossche/events{/privacy}","received_events_url":"https://api.github.com/users/jorisvandenbossche/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Compat","name":"Compat","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/34","html_url":"https://github.com/pydata/pandas/milestones/0.17.0","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/34/labels","id":1033710,"number":34,"title":"0.17.0","description":"","creator":{"login":"jreback","id":953992,"avatar_url":"https://avatars.githubusercontent.com/u/953992?v=3","gravatar_id":"","url":"https://api.github.com/users/jreback","html_url":"https://github.com/jreback","followers_url":"https://api.github.com/users/jreback/followers","following_url":"https://api.github.com/users/jreback/following{/other_user}","gists_url":"https://api.github.com/users/jreback/gists{/gist_id}","starred_url":"https://api.github.com/users/jreback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jreback/subscriptions","organizations_url":"https://api.github.com/users/jreback/orgs","repos_url":"https://api.github.com/users/jreback/repos","events_url":"https://api.github.com/users/jreback/events{/privacy}","received_events_url":"https://api.github.com/users/jreback/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":590,"state":"closed","created_at":"2015-03-23T10:47:38Z","updated_at":"2015-10-19T20:52:48Z","due_on":"2015-10-10T04:00:00Z","closed_at":"2015-10-09T18:34:35Z"},"comments":9,"created_at":"2015-09-25T20:20:29Z","updated_at":"2015-10-30T18:26:36Z","closed_at":"2015-09-25T23:51:09Z","body":"```\r\nIn [1]: df = pd.DataFrame({\"id\":[1,2,3,4,5,6], \"grade\":['a', 'b', 'b', 'a', 'a', 'e']})\r\n\r\nIn [2]: df.groupby(\"grade\").size()\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-3-d8e387418f9d> in <module>()\r\n----> 1 df.groupby(\"grade\").size()\r\n\r\n/home/joris/scipy/pandas/pandas/core/groupby.pyc in size(self)\r\n    818 \r\n    819         \"\"\"\r\n--> 820         return self.grouper.size()\r\n    821 \r\n    822     sum = _groupby_function('sum', 'add', np.sum)\r\n\r\n/home/joris/scipy/pandas/pandas/core/groupby.pyc in size(self)\r\n   1380         \"\"\"\r\n   1381         ids, _, ngroup = self.group_info\r\n-> 1382         out = np.bincount(ids[ids != -1], minlength=ngroup)\r\n   1383         return Series(out, index=self.result_index)\r\n   1384 \r\n\r\nTypeError: Cannot cast array data from dtype('int64') to dtype('int32') according to the rule 'safe'\r\n\r\nIn [4]: pd.__version__\r\nOut[4]: '0.17.0rc1+108.g3fb802a'\r\n```"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/152609346","html_url":"https://github.com/pydata/pandas/issues/11189#issuecomment-152609346","issue_url":"https://api.github.com/repos/pydata/pandas/issues/11189","id":152609346,"user":{"login":"BuhtigithuB","id":1660615,"avatar_url":"https://avatars.githubusercontent.com/u/1660615?v=3","gravatar_id":"","url":"https://api.github.com/users/BuhtigithuB","html_url":"https://github.com/BuhtigithuB","followers_url":"https://api.github.com/users/BuhtigithuB/followers","following_url":"https://api.github.com/users/BuhtigithuB/following{/other_user}","gists_url":"https://api.github.com/users/BuhtigithuB/gists{/gist_id}","starred_url":"https://api.github.com/users/BuhtigithuB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BuhtigithuB/subscriptions","organizations_url":"https://api.github.com/users/BuhtigithuB/orgs","repos_url":"https://api.github.com/users/BuhtigithuB/repos","events_url":"https://api.github.com/users/BuhtigithuB/events{/privacy}","received_events_url":"https://api.github.com/users/BuhtigithuB/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T18:26:36Z","updated_at":"2015-10-30T18:26:36Z","body":"Hello,\r\n\r\nI have issue with minlength which seems to be fix with this solved issue... Are we going to have pandas 0.17.1 version tag soon? It really unreliable without it to pass to 0.17.x which seems to bring many benefit despite this \".size() minlength\" issue...\r\n\r\nAnd if not is using master consider \"safe\" (as read stable as an official tagged commit)?\r\n\r\nThanks"}}