{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/10625","labels_url":"https://api.github.com/repos/pydata/pandas/issues/10625/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/10625/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/10625/events","html_url":"https://github.com/pydata/pandas/pull/10625","id":95892438,"number":10625,"title":"BUG: Fix issue with incorrect groupby handling of NaT","user":{"login":"larvian","id":260246,"avatar_url":"https://avatars.githubusercontent.com/u/260246?v=3","gravatar_id":"","url":"https://api.github.com/users/larvian","html_url":"https://github.com/larvian","followers_url":"https://api.github.com/users/larvian/followers","following_url":"https://api.github.com/users/larvian/following{/other_user}","gists_url":"https://api.github.com/users/larvian/gists{/gist_id}","starred_url":"https://api.github.com/users/larvian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larvian/subscriptions","organizations_url":"https://api.github.com/users/larvian/orgs","repos_url":"https://api.github.com/users/larvian/repos","events_url":"https://api.github.com/users/larvian/events{/privacy}","received_events_url":"https://api.github.com/users/larvian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Groupby","name":"Groupby","color":"729FCF"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Missing-data","name":"Missing-data","color":"d7e102"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Timeseries","name":"Timeseries","color":"AFEEEE"}],"state":"open","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":33,"closed_issues":412,"state":"open","created_at":"2015-03-23T10:47:38Z","updated_at":"2015-09-02T14:33:02Z","due_on":"2015-09-15T04:00:00Z","closed_at":null},"comments":17,"created_at":"2015-07-19T06:51:30Z","updated_at":"2015-09-02T14:33:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pydata/pandas/pulls/10625","html_url":"https://github.com/pydata/pandas/pull/10625","diff_url":"https://github.com/pydata/pandas/pull/10625.diff","patch_url":"https://github.com/pydata/pandas/pull/10625.patch"},"body":"closes #10590 \r\n\r\nFor groupby the time stamps gets converted to integervalue `tslib.iNaT`\r\nwhich is -9223372036854775808. The aggregation is then done using this\r\nvalue with incorrect result as a consequence. The solution proposed here\r\nis to replace its value by np.nan in case it is a `datetime64[ns]`"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/137104334","html_url":"https://github.com/pydata/pandas/pull/10625#issuecomment-137104334","issue_url":"https://api.github.com/repos/pydata/pandas/issues/10625","id":137104334,"user":{"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},"created_at":"2015-09-02T14:33:11Z","updated_at":"2015-09-02T14:33:11Z","body":"ping when green."}}