{"action":"created","comment":{"url":"https://api.github.com/repos/pydata/pandas/pulls/comments/35048089","id":35048089,"diff_hunk":"@@ -256,6 +257,11 @@ def __array_wrap__(self, result, context=None):\n         \"\"\"\n         return self._shallow_copy(result)\n \n+    def reshape(self, shape, **kwargs):\n+        \"\"\" reshape the underlying data; this is purely for compat\n+        and has no effect on a 1-d Index type \"\"\"\n+        return self","path":"pandas/core/index.py","position":24,"original_position":24,"commit_id":"f1230bd69764bc6a178a349736438a002629f04d","original_commit_id":"f1230bd69764bc6a178a349736438a002629f04d","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},"body":"removed, was some older code","created_at":"2015-07-20T21:44:15Z","updated_at":"2015-07-20T21:44:15Z","html_url":"https://github.com/pydata/pandas/pull/10477#discussion_r35048089","pull_request_url":"https://api.github.com/repos/pydata/pandas/pulls/10477","_links":{"self":{"href":"https://api.github.com/repos/pydata/pandas/pulls/comments/35048089"},"html":{"href":"https://github.com/pydata/pandas/pull/10477#discussion_r35048089"},"pull_request":{"href":"https://api.github.com/repos/pydata/pandas/pulls/10477"}}},"pull_request":{"url":"https://api.github.com/repos/pydata/pandas/pulls/10477","id":38892625,"html_url":"https://github.com/pydata/pandas/pull/10477","diff_url":"https://github.com/pydata/pandas/pull/10477.diff","patch_url":"https://github.com/pydata/pandas/pull/10477.patch","issue_url":"https://api.github.com/repos/pydata/pandas/issues/10477","number":10477,"state":"open","locked":false,"title":"API: add DatetimeBlockTZ #8260","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},"body":"closes #8260 \r\n\r\nToDos:\r\n- [x] doc updates\r\n- [x] test with ``Series.dt.*``\r\n- [x] test with csv/HDF5\r\n- [x] nat setting borked ATM\r\n- [x] HDF5 example from 0.16.2\r\n\r\n~~- [ ] get_values/values - make consistent~~\r\n~~- [ ] maybe move ``DatetimeTZBlock.shift`` mostly to ``DatetimeIndex.shift``~~\r\n\r\nAlso\r\n- This cleans up the internal blocks calling conventions a bit\r\n- Fixes a bug in ``DatetimeIndex`` and localizing when NaT's are present\r\n\r\n```\r\n-------------------------------------------------------------------------------\r\nTest name                                    | head[ms] | base[ms] |  ratio   |\r\n-------------------------------------------------------------------------------\r\ntimestamp_tz_ops_diff1                       |   0.1804 | 159.4527 |   0.0011 | # note these are 10k element\r\ntimestamp_tz_ops_diff2                       |   2.5350 | 156.4047 |   0.0162 | # note these are 10k elements\r\ntimeseries_timestamp_downsample_mean         |   3.1467 |   3.3040 |   0.9524 |\r\ntimestamp_series_compare                     |   9.0797 |   9.1290 |   0.9946 |\r\ntimestamp_ops_diff2                          |  19.7570 |  19.6819 |   1.0038 | # this is 1M elements\r\nseries_timestamp_compare                     |   9.3430 |   9.0226 |   1.0355 |\r\ntimestamp_ops_diff1                          |   9.7457 |   9.0450 |   1.0775 | # this is 1M elements\r\n-------------------------------------------------------------------------------\r\nTest name                                    | head[ms] | base[ms] |  ratio   |\r\n-------------------------------------------------------------------------------\r\n\r\nRatio < 1.0 means the target commit is faster then the baseline.\r\nSeed used: 1234\r\n\r\nTarget [8502474] : API: add Block.make_block\r\nAPI: add DatetimeBlockWithTZ #8260\r\nBase   [16a44ad] : Merge pull request #10199 from jreback/gil\r\nPERF: releasing the GIL, #8882\r\n```\r\n\r\nDemo\r\n```\r\nIn [1]:   df = DataFrame({'A' : date_range('20130101',periods=3),\r\n   ...:                    'B' : date_range('20130101',periods=3,tz='US/Eastern'),\r\n   ...:                    'C' : date_range('20130101',periods=3,tz='CET')})\r\n\r\nIn [2]:    df\r\nOut[2]: \r\n           A                   B                   C\r\n0 2013-01-01 2013-01-01 05:00:00 2012-12-31 23:00:00\r\n1 2013-01-02 2013-01-02 05:00:00 2013-01-01 23:00:00\r\n2 2013-01-03 2013-01-03 05:00:00 2013-01-02 23:00:00\r\n\r\nIn [3]:    df.dtypes\r\nOut[3]: \r\nA                datetime64[ns]\r\nB    datetime64[ns, US/Eastern]\r\nC           datetime64[ns, CET]\r\ndtype: object\r\n\r\nIn [4]: df.B\r\nOut[4]: \r\n0   2013-01-01 00:00:00-05:00\r\n1   2013-01-02 00:00:00-05:00\r\n2   2013-01-03 00:00:00-05:00\r\nName: B, dtype: datetime64[ns, US/Eastern]\r\n\r\nIn [5]: df.B.dt.tz_localize(None)\r\nOut[5]: \r\n0   2013-01-01\r\n1   2013-01-02\r\n2   2013-01-03\r\ndtype: datetime64[ns]\r\n```","created_at":"2015-06-30T15:44:09Z","updated_at":"2015-07-20T21:44:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"274b39bc659e4aff17a35c1508a8515c7faa4a6b","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":187,"closed_issues":139,"state":"open","created_at":"2015-03-23T10:47:38Z","updated_at":"2015-07-20T21:19:08Z","due_on":"2015-07-31T04:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/pydata/pandas/pulls/10477/commits","review_comments_url":"https://api.github.com/repos/pydata/pandas/pulls/10477/comments","review_comment_url":"https://api.github.com/repos/pydata/pandas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/10477/comments","statuses_url":"https://api.github.com/repos/pydata/pandas/statuses/f1230bd69764bc6a178a349736438a002629f04d","head":{"label":"jreback:tz","ref":"tz","sha":"f1230bd69764bc6a178a349736438a002629f04d","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},"repo":{"id":2142250,"name":"pandas","full_name":"jreback/pandas","owner":{"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},"private":false,"html_url":"https://github.com/jreback/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/jreback/pandas","forks_url":"https://api.github.com/repos/jreback/pandas/forks","keys_url":"https://api.github.com/repos/jreback/pandas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jreback/pandas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jreback/pandas/teams","hooks_url":"https://api.github.com/repos/jreback/pandas/hooks","issue_events_url":"https://api.github.com/repos/jreback/pandas/issues/events{/number}","events_url":"https://api.github.com/repos/jreback/pandas/events","assignees_url":"https://api.github.com/repos/jreback/pandas/assignees{/user}","branches_url":"https://api.github.com/repos/jreback/pandas/branches{/branch}","tags_url":"https://api.github.com/repos/jreback/pandas/tags","blobs_url":"https://api.github.com/repos/jreback/pandas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jreback/pandas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jreback/pandas/git/refs{/sha}","trees_url":"https://api.github.com/repos/jreback/pandas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jreback/pandas/statuses/{sha}","languages_url":"https://api.github.com/repos/jreback/pandas/languages","stargazers_url":"https://api.github.com/repos/jreback/pandas/stargazers","contributors_url":"https://api.github.com/repos/jreback/pandas/contributors","subscribers_url":"https://api.github.com/repos/jreback/pandas/subscribers","subscription_url":"https://api.github.com/repos/jreback/pandas/subscription","commits_url":"https://api.github.com/repos/jreback/pandas/commits{/sha}","git_commits_url":"https://api.github.com/repos/jreback/pandas/git/commits{/sha}","comments_url":"https://api.github.com/repos/jreback/pandas/comments{/number}","issue_comment_url":"https://api.github.com/repos/jreback/pandas/issues/comments{/number}","contents_url":"https://api.github.com/repos/jreback/pandas/contents/{+path}","compare_url":"https://api.github.com/repos/jreback/pandas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jreback/pandas/merges","archive_url":"https://api.github.com/repos/jreback/pandas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jreback/pandas/downloads","issues_url":"https://api.github.com/repos/jreback/pandas/issues{/number}","pulls_url":"https://api.github.com/repos/jreback/pandas/pulls{/number}","milestones_url":"https://api.github.com/repos/jreback/pandas/milestones{/number}","notifications_url":"https://api.github.com/repos/jreback/pandas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jreback/pandas/labels{/name}","releases_url":"https://api.github.com/repos/jreback/pandas/releases{/id}","created_at":"2011-08-02T12:17:07Z","updated_at":"2015-04-14T13:49:32Z","pushed_at":"2015-07-19T21:05:16Z","git_url":"git://github.com/jreback/pandas.git","ssh_url":"git@github.com:jreback/pandas.git","clone_url":"https://github.com/jreback/pandas.git","svn_url":"https://github.com/jreback/pandas","homepage":"http://pandas.sourceforge.net","size":64401,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":4,"default_branch":"master"}},"base":{"label":"pydata:master","ref":"master","sha":"4bb45b15bb4561e2fbb869a523e9258a91391542","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}","created_at":"2010-08-24T01:37:33Z","updated_at":"2015-07-20T19:10:03Z","pushed_at":"2015-07-20T21:19:10Z","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":150381,"stargazers_count":4673,"watchers_count":4673,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1768,"mirror_url":null,"open_issues_count":1507,"forks":1768,"open_issues":1507,"watchers":4673,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pydata/pandas/pulls/10477"},"html":{"href":"https://github.com/pydata/pandas/pull/10477"},"issue":{"href":"https://api.github.com/repos/pydata/pandas/issues/10477"},"comments":{"href":"https://api.github.com/repos/pydata/pandas/issues/10477/comments"},"review_comments":{"href":"https://api.github.com/repos/pydata/pandas/pulls/10477/comments"},"review_comment":{"href":"https://api.github.com/repos/pydata/pandas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pydata/pandas/pulls/10477/commits"},"statuses":{"href":"https://api.github.com/repos/pydata/pandas/statuses/f1230bd69764bc6a178a349736438a002629f04d"}}}}