{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/larvian/pandas/pulls/1","id":40852353,"html_url":"https://github.com/larvian/pandas/pull/1","diff_url":"https://github.com/larvian/pandas/pull/1.diff","patch_url":"https://github.com/larvian/pandas/pull/1.patch","issue_url":"https://api.github.com/repos/larvian/pandas/issues/1","number":1,"state":"closed","locked":false,"title":"BUG: Fix issue with incorrect groupby handling of NaT #10590","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},"body":"For 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 datetime or timedelta.","created_at":"2015-07-26T12:15:53Z","updated_at":"2015-07-26T12:21:54Z","closed_at":"2015-07-26T12:21:54Z","merged_at":null,"merge_commit_sha":"d6061b7e19857eb02fec7c74bcdc285fa9d40006","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/larvian/pandas/pulls/1/commits","review_comments_url":"https://api.github.com/repos/larvian/pandas/pulls/1/comments","review_comment_url":"https://api.github.com/repos/larvian/pandas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/larvian/pandas/issues/1/comments","statuses_url":"https://api.github.com/repos/larvian/pandas/statuses/f7f030ee08e9cd01a25698f538a9a9130f47d971","head":{"label":"larvian:fix-issue-grouby-missing-date-data","ref":"fix-issue-grouby-missing-date-data","sha":"f7f030ee08e9cd01a25698f538a9a9130f47d971","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},"repo":{"id":39324348,"name":"pandas","full_name":"larvian/pandas","owner":{"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},"private":false,"html_url":"https://github.com/larvian/pandas","description":"Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more","fork":true,"url":"https://api.github.com/repos/larvian/pandas","forks_url":"https://api.github.com/repos/larvian/pandas/forks","keys_url":"https://api.github.com/repos/larvian/pandas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/larvian/pandas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/larvian/pandas/teams","hooks_url":"https://api.github.com/repos/larvian/pandas/hooks","issue_events_url":"https://api.github.com/repos/larvian/pandas/issues/events{/number}","events_url":"https://api.github.com/repos/larvian/pandas/events","assignees_url":"https://api.github.com/repos/larvian/pandas/assignees{/user}","branches_url":"https://api.github.com/repos/larvian/pandas/branches{/branch}","tags_url":"https://api.github.com/repos/larvian/pandas/tags","blobs_url":"https://api.github.com/repos/larvian/pandas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/larvian/pandas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/larvian/pandas/git/refs{/sha}","trees_url":"https://api.github.com/repos/larvian/pandas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/larvian/pandas/statuses/{sha}","languages_url":"https://api.github.com/repos/larvian/pandas/languages","stargazers_url":"https://api.github.com/repos/larvian/pandas/stargazers","contributors_url":"https://api.github.com/repos/larvian/pandas/contributors","subscribers_url":"https://api.github.com/repos/larvian/pandas/subscribers","subscription_url":"https://api.github.com/repos/larvian/pandas/subscription","commits_url":"https://api.github.com/repos/larvian/pandas/commits{/sha}","git_commits_url":"https://api.github.com/repos/larvian/pandas/git/commits{/sha}","comments_url":"https://api.github.com/repos/larvian/pandas/comments{/number}","issue_comment_url":"https://api.github.com/repos/larvian/pandas/issues/comments{/number}","contents_url":"https://api.github.com/repos/larvian/pandas/contents/{+path}","compare_url":"https://api.github.com/repos/larvian/pandas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/larvian/pandas/merges","archive_url":"https://api.github.com/repos/larvian/pandas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/larvian/pandas/downloads","issues_url":"https://api.github.com/repos/larvian/pandas/issues{/number}","pulls_url":"https://api.github.com/repos/larvian/pandas/pulls{/number}","milestones_url":"https://api.github.com/repos/larvian/pandas/milestones{/number}","notifications_url":"https://api.github.com/repos/larvian/pandas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/larvian/pandas/labels{/name}","releases_url":"https://api.github.com/repos/larvian/pandas/releases{/id}","created_at":"2015-07-19T06:06:45Z","updated_at":"2015-07-19T06:06:48Z","pushed_at":"2015-07-26T12:15:53Z","git_url":"git://github.com/larvian/pandas.git","ssh_url":"git@github.com:larvian/pandas.git","clone_url":"https://github.com/larvian/pandas.git","svn_url":"https://github.com/larvian/pandas","homepage":"http://pandas.pydata.org","size":55509,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"larvian:master","ref":"master","sha":"355b4623d842633746b29b6e7f1724af4cd87dae","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},"repo":{"id":39324348,"name":"pandas","full_name":"larvian/pandas","owner":{"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},"private":false,"html_url":"https://github.com/larvian/pandas","description":"Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more","fork":true,"url":"https://api.github.com/repos/larvian/pandas","forks_url":"https://api.github.com/repos/larvian/pandas/forks","keys_url":"https://api.github.com/repos/larvian/pandas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/larvian/pandas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/larvian/pandas/teams","hooks_url":"https://api.github.com/repos/larvian/pandas/hooks","issue_events_url":"https://api.github.com/repos/larvian/pandas/issues/events{/number}","events_url":"https://api.github.com/repos/larvian/pandas/events","assignees_url":"https://api.github.com/repos/larvian/pandas/assignees{/user}","branches_url":"https://api.github.com/repos/larvian/pandas/branches{/branch}","tags_url":"https://api.github.com/repos/larvian/pandas/tags","blobs_url":"https://api.github.com/repos/larvian/pandas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/larvian/pandas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/larvian/pandas/git/refs{/sha}","trees_url":"https://api.github.com/repos/larvian/pandas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/larvian/pandas/statuses/{sha}","languages_url":"https://api.github.com/repos/larvian/pandas/languages","stargazers_url":"https://api.github.com/repos/larvian/pandas/stargazers","contributors_url":"https://api.github.com/repos/larvian/pandas/contributors","subscribers_url":"https://api.github.com/repos/larvian/pandas/subscribers","subscription_url":"https://api.github.com/repos/larvian/pandas/subscription","commits_url":"https://api.github.com/repos/larvian/pandas/commits{/sha}","git_commits_url":"https://api.github.com/repos/larvian/pandas/git/commits{/sha}","comments_url":"https://api.github.com/repos/larvian/pandas/comments{/number}","issue_comment_url":"https://api.github.com/repos/larvian/pandas/issues/comments{/number}","contents_url":"https://api.github.com/repos/larvian/pandas/contents/{+path}","compare_url":"https://api.github.com/repos/larvian/pandas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/larvian/pandas/merges","archive_url":"https://api.github.com/repos/larvian/pandas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/larvian/pandas/downloads","issues_url":"https://api.github.com/repos/larvian/pandas/issues{/number}","pulls_url":"https://api.github.com/repos/larvian/pandas/pulls{/number}","milestones_url":"https://api.github.com/repos/larvian/pandas/milestones{/number}","notifications_url":"https://api.github.com/repos/larvian/pandas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/larvian/pandas/labels{/name}","releases_url":"https://api.github.com/repos/larvian/pandas/releases{/id}","created_at":"2015-07-19T06:06:45Z","updated_at":"2015-07-19T06:06:48Z","pushed_at":"2015-07-26T12:15:53Z","git_url":"git://github.com/larvian/pandas.git","ssh_url":"git@github.com:larvian/pandas.git","clone_url":"https://github.com/larvian/pandas.git","svn_url":"https://github.com/larvian/pandas","homepage":"http://pandas.pydata.org","size":55509,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/larvian/pandas/pulls/1"},"html":{"href":"https://github.com/larvian/pandas/pull/1"},"issue":{"href":"https://api.github.com/repos/larvian/pandas/issues/1"},"comments":{"href":"https://api.github.com/repos/larvian/pandas/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/larvian/pandas/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/larvian/pandas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/larvian/pandas/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/larvian/pandas/statuses/f7f030ee08e9cd01a25698f538a9a9130f47d971"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":17,"deletions":0,"changed_files":3}}