{"action":"created","comment":{"url":"https://api.github.com/repos/pydata/pandas/pulls/comments/71095554","id":71095554,"diff_hunk":"@@ -754,7 +758,7 @@ def _maybe_cast_slice_bound(self, label, side, kind):\n     def _get_string_slice(self, key, use_lhs=True, use_rhs=True):\n         freq = getattr(self, 'freqstr',\n                        getattr(self, 'inferred_freq', None))\n-        if is_integer(key) or is_float(key):\n+        if is_integer(key) or is_float(key) or key is tslib.NaT:","path":"pandas/tseries/tdi.py","position":16,"original_position":16,"commit_id":"81a26fd4ded90d7f8987caa102a2b5f23da4cf18","original_commit_id":"81a26fd4ded90d7f8987caa102a2b5f23da4cf18","user":{"login":"yui-knk","id":5356517,"avatar_url":"https://avatars.githubusercontent.com/u/5356517?v=3","gravatar_id":"","url":"https://api.github.com/users/yui-knk","html_url":"https://github.com/yui-knk","followers_url":"https://api.github.com/users/yui-knk/followers","following_url":"https://api.github.com/users/yui-knk/following{/other_user}","gists_url":"https://api.github.com/users/yui-knk/gists{/gist_id}","starred_url":"https://api.github.com/users/yui-knk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yui-knk/subscriptions","organizations_url":"https://api.github.com/users/yui-knk/orgs","repos_url":"https://api.github.com/users/yui-knk/repos","events_url":"https://api.github.com/users/yui-knk/events{/privacy}","received_events_url":"https://api.github.com/users/yui-knk/received_events","type":"User","site_admin":false},"body":"We cast a key to NaT. Adn NaT is not an integer.\r\n\r\n```\r\nIn [111]: pd.lib.is_integer(pd.tslib.iNaT)\r\nOut[111]: 1\r\n\r\nIn [112]: pd.lib.is_integer(pd.tslib.NaT)\r\nOut[112]: 0\r\n```","created_at":"2016-07-18T02:18:39Z","updated_at":"2016-07-18T02:18:40Z","html_url":"https://github.com/pydata/pandas/pull/13687#discussion_r71095554","pull_request_url":"https://api.github.com/repos/pydata/pandas/pulls/13687","_links":{"self":{"href":"https://api.github.com/repos/pydata/pandas/pulls/comments/71095554"},"html":{"href":"https://github.com/pydata/pandas/pull/13687#discussion_r71095554"},"pull_request":{"href":"https://api.github.com/repos/pydata/pandas/pulls/13687"}}},"pull_request":{"url":"https://api.github.com/repos/pydata/pandas/pulls/13687","id":77739216,"html_url":"https://github.com/pydata/pandas/pull/13687","diff_url":"https://github.com/pydata/pandas/pull/13687.diff","patch_url":"https://github.com/pydata/pandas/pull/13687.patch","issue_url":"https://api.github.com/repos/pydata/pandas/issues/13687","number":13687,"state":"open","locked":false,"title":"BUG: Cast a key to NaT before get loc from Index","user":{"login":"yui-knk","id":5356517,"avatar_url":"https://avatars.githubusercontent.com/u/5356517?v=3","gravatar_id":"","url":"https://api.github.com/users/yui-knk","html_url":"https://github.com/yui-knk","followers_url":"https://api.github.com/users/yui-knk/followers","following_url":"https://api.github.com/users/yui-knk/following{/other_user}","gists_url":"https://api.github.com/users/yui-knk/gists{/gist_id}","starred_url":"https://api.github.com/users/yui-knk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yui-knk/subscriptions","organizations_url":"https://api.github.com/users/yui-knk/orgs","repos_url":"https://api.github.com/users/yui-knk/repos","events_url":"https://api.github.com/users/yui-knk/events{/privacy}","received_events_url":"https://api.github.com/users/yui-knk/received_events","type":"User","site_admin":false},"body":" - [x] closes #13603\r\n - [x] tests added / passed\r\n - [x] passes ``git diff upstream/master | flake8 --diff``\r\n - [ ] whatsnew entry\r\n\r\npd.NaT, None, float('nan') and np.nan are\r\nconverted NaT in TestTimedeltas.\r\nSo we should convert keys if keys are these value.\r\n\r\nFix #13603","created_at":"2016-07-17T16:16:56Z","updated_at":"2016-07-18T02:18:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f34632b9f1dd6cb7708e0440f291319a40fec265","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/40","html_url":"https://github.com/pydata/pandas/milestones/0.19.0","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/40/labels","id":1639795,"number":40,"title":"0.19.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":197,"closed_issues":298,"state":"open","created_at":"2016-03-11T21:24:45Z","updated_at":"2016-07-17T21:29:40Z","due_on":"2016-08-30T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/pydata/pandas/pulls/13687/commits","review_comments_url":"https://api.github.com/repos/pydata/pandas/pulls/13687/comments","review_comment_url":"https://api.github.com/repos/pydata/pandas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/13687/comments","statuses_url":"https://api.github.com/repos/pydata/pandas/statuses/81a26fd4ded90d7f8987caa102a2b5f23da4cf18","head":{"label":"yui-knk:fix_13603","ref":"fix_13603","sha":"81a26fd4ded90d7f8987caa102a2b5f23da4cf18","user":{"login":"yui-knk","id":5356517,"avatar_url":"https://avatars.githubusercontent.com/u/5356517?v=3","gravatar_id":"","url":"https://api.github.com/users/yui-knk","html_url":"https://github.com/yui-knk","followers_url":"https://api.github.com/users/yui-knk/followers","following_url":"https://api.github.com/users/yui-knk/following{/other_user}","gists_url":"https://api.github.com/users/yui-knk/gists{/gist_id}","starred_url":"https://api.github.com/users/yui-knk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yui-knk/subscriptions","organizations_url":"https://api.github.com/users/yui-knk/orgs","repos_url":"https://api.github.com/users/yui-knk/repos","events_url":"https://api.github.com/users/yui-knk/events{/privacy}","received_events_url":"https://api.github.com/users/yui-knk/received_events","type":"User","site_admin":false},"repo":{"id":62497972,"name":"pandas","full_name":"yui-knk/pandas","owner":{"login":"yui-knk","id":5356517,"avatar_url":"https://avatars.githubusercontent.com/u/5356517?v=3","gravatar_id":"","url":"https://api.github.com/users/yui-knk","html_url":"https://github.com/yui-knk","followers_url":"https://api.github.com/users/yui-knk/followers","following_url":"https://api.github.com/users/yui-knk/following{/other_user}","gists_url":"https://api.github.com/users/yui-knk/gists{/gist_id}","starred_url":"https://api.github.com/users/yui-knk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yui-knk/subscriptions","organizations_url":"https://api.github.com/users/yui-knk/orgs","repos_url":"https://api.github.com/users/yui-knk/repos","events_url":"https://api.github.com/users/yui-knk/events{/privacy}","received_events_url":"https://api.github.com/users/yui-knk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yui-knk/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/yui-knk/pandas","forks_url":"https://api.github.com/repos/yui-knk/pandas/forks","keys_url":"https://api.github.com/repos/yui-knk/pandas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yui-knk/pandas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yui-knk/pandas/teams","hooks_url":"https://api.github.com/repos/yui-knk/pandas/hooks","issue_events_url":"https://api.github.com/repos/yui-knk/pandas/issues/events{/number}","events_url":"https://api.github.com/repos/yui-knk/pandas/events","assignees_url":"https://api.github.com/repos/yui-knk/pandas/assignees{/user}","branches_url":"https://api.github.com/repos/yui-knk/pandas/branches{/branch}","tags_url":"https://api.github.com/repos/yui-knk/pandas/tags","blobs_url":"https://api.github.com/repos/yui-knk/pandas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yui-knk/pandas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yui-knk/pandas/git/refs{/sha}","trees_url":"https://api.github.com/repos/yui-knk/pandas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yui-knk/pandas/statuses/{sha}","languages_url":"https://api.github.com/repos/yui-knk/pandas/languages","stargazers_url":"https://api.github.com/repos/yui-knk/pandas/stargazers","contributors_url":"https://api.github.com/repos/yui-knk/pandas/contributors","subscribers_url":"https://api.github.com/repos/yui-knk/pandas/subscribers","subscription_url":"https://api.github.com/repos/yui-knk/pandas/subscription","commits_url":"https://api.github.com/repos/yui-knk/pandas/commits{/sha}","git_commits_url":"https://api.github.com/repos/yui-knk/pandas/git/commits{/sha}","comments_url":"https://api.github.com/repos/yui-knk/pandas/comments{/number}","issue_comment_url":"https://api.github.com/repos/yui-knk/pandas/issues/comments{/number}","contents_url":"https://api.github.com/repos/yui-knk/pandas/contents/{+path}","compare_url":"https://api.github.com/repos/yui-knk/pandas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yui-knk/pandas/merges","archive_url":"https://api.github.com/repos/yui-knk/pandas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yui-knk/pandas/downloads","issues_url":"https://api.github.com/repos/yui-knk/pandas/issues{/number}","pulls_url":"https://api.github.com/repos/yui-knk/pandas/pulls{/number}","milestones_url":"https://api.github.com/repos/yui-knk/pandas/milestones{/number}","notifications_url":"https://api.github.com/repos/yui-knk/pandas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yui-knk/pandas/labels{/name}","releases_url":"https://api.github.com/repos/yui-knk/pandas/releases{/id}","deployments_url":"https://api.github.com/repos/yui-knk/pandas/deployments","created_at":"2016-07-03T13:32:58Z","updated_at":"2016-07-03T13:33:04Z","pushed_at":"2016-07-17T16:16:41Z","git_url":"git://github.com/yui-knk/pandas.git","ssh_url":"git@github.com:yui-knk/pandas.git","clone_url":"https://github.com/yui-knk/pandas.git","svn_url":"https://github.com/yui-knk/pandas","homepage":"http://pandas.pydata.org","size":82657,"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":"pydata:master","ref":"master","sha":"043879fbb7de71605eed87991eb037c1917bace1","user":{"login":"pydata","id":1284191,"avatar_url":"https://avatars.githubusercontent.com/u/1284191?v=3","gravatar_id":"","url":"https://api.github.com/users/pydata","html_url":"https://github.com/pydata","followers_url":"https://api.github.com/users/pydata/followers","following_url":"https://api.github.com/users/pydata/following{/other_user}","gists_url":"https://api.github.com/users/pydata/gists{/gist_id}","starred_url":"https://api.github.com/users/pydata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pydata/subscriptions","organizations_url":"https://api.github.com/users/pydata/orgs","repos_url":"https://api.github.com/users/pydata/repos","events_url":"https://api.github.com/users/pydata/events{/privacy}","received_events_url":"https://api.github.com/users/pydata/received_events","type":"Organization","site_admin":false},"repo":{"id":858127,"name":"pandas","full_name":"pydata/pandas","owner":{"login":"pydata","id":1284191,"avatar_url":"https://avatars.githubusercontent.com/u/1284191?v=3","gravatar_id":"","url":"https://api.github.com/users/pydata","html_url":"https://github.com/pydata","followers_url":"https://api.github.com/users/pydata/followers","following_url":"https://api.github.com/users/pydata/following{/other_user}","gists_url":"https://api.github.com/users/pydata/gists{/gist_id}","starred_url":"https://api.github.com/users/pydata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pydata/subscriptions","organizations_url":"https://api.github.com/users/pydata/orgs","repos_url":"https://api.github.com/users/pydata/repos","events_url":"https://api.github.com/users/pydata/events{/privacy}","received_events_url":"https://api.github.com/users/pydata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pydata/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":false,"url":"https://api.github.com/repos/pydata/pandas","forks_url":"https://api.github.com/repos/pydata/pandas/forks","keys_url":"https://api.github.com/repos/pydata/pandas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pydata/pandas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pydata/pandas/teams","hooks_url":"https://api.github.com/repos/pydata/pandas/hooks","issue_events_url":"https://api.github.com/repos/pydata/pandas/issues/events{/number}","events_url":"https://api.github.com/repos/pydata/pandas/events","assignees_url":"https://api.github.com/repos/pydata/pandas/assignees{/user}","branches_url":"https://api.github.com/repos/pydata/pandas/branches{/branch}","tags_url":"https://api.github.com/repos/pydata/pandas/tags","blobs_url":"https://api.github.com/repos/pydata/pandas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pydata/pandas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pydata/pandas/git/refs{/sha}","trees_url":"https://api.github.com/repos/pydata/pandas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pydata/pandas/statuses/{sha}","languages_url":"https://api.github.com/repos/pydata/pandas/languages","stargazers_url":"https://api.github.com/repos/pydata/pandas/stargazers","contributors_url":"https://api.github.com/repos/pydata/pandas/contributors","subscribers_url":"https://api.github.com/repos/pydata/pandas/subscribers","subscription_url":"https://api.github.com/repos/pydata/pandas/subscription","commits_url":"https://api.github.com/repos/pydata/pandas/commits{/sha}","git_commits_url":"https://api.github.com/repos/pydata/pandas/git/commits{/sha}","comments_url":"https://api.github.com/repos/pydata/pandas/comments{/number}","issue_comment_url":"https://api.github.com/repos/pydata/pandas/issues/comments{/number}","contents_url":"https://api.github.com/repos/pydata/pandas/contents/{+path}","compare_url":"https://api.github.com/repos/pydata/pandas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pydata/pandas/merges","archive_url":"https://api.github.com/repos/pydata/pandas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pydata/pandas/downloads","issues_url":"https://api.github.com/repos/pydata/pandas/issues{/number}","pulls_url":"https://api.github.com/repos/pydata/pandas/pulls{/number}","milestones_url":"https://api.github.com/repos/pydata/pandas/milestones{/number}","notifications_url":"https://api.github.com/repos/pydata/pandas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pydata/pandas/labels{/name}","releases_url":"https://api.github.com/repos/pydata/pandas/releases{/id}","deployments_url":"https://api.github.com/repos/pydata/pandas/deployments","created_at":"2010-08-24T01:37:33Z","updated_at":"2016-07-17T19:09:04Z","pushed_at":"2016-07-18T01:20:07Z","git_url":"git://github.com/pydata/pandas.git","ssh_url":"git@github.com:pydata/pandas.git","clone_url":"https://github.com/pydata/pandas.git","svn_url":"https://github.com/pydata/pandas","homepage":"http://pandas.pydata.org","size":152845,"stargazers_count":6651,"watchers_count":6651,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2759,"mirror_url":null,"open_issues_count":1830,"forks":2759,"open_issues":1830,"watchers":6651,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pydata/pandas/pulls/13687"},"html":{"href":"https://github.com/pydata/pandas/pull/13687"},"issue":{"href":"https://api.github.com/repos/pydata/pandas/issues/13687"},"comments":{"href":"https://api.github.com/repos/pydata/pandas/issues/13687/comments"},"review_comments":{"href":"https://api.github.com/repos/pydata/pandas/pulls/13687/comments"},"review_comment":{"href":"https://api.github.com/repos/pydata/pandas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pydata/pandas/pulls/13687/commits"},"statuses":{"href":"https://api.github.com/repos/pydata/pandas/statuses/81a26fd4ded90d7f8987caa102a2b5f23da4cf18"}}}}
{"actor":{"display_login":"yui-knk"}}