{"action":"opened","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/11365","labels_url":"https://api.github.com/repos/pydata/pandas/issues/11365/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/11365/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/11365/events","html_url":"https://github.com/pydata/pandas/issues/11365","id":112047644,"number":11365,"title":"BUG: .loc assignment of datetime with tz is coercing to naive","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},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Difficulty%20Intermediate","name":"Difficulty Intermediate","color":"fbca04"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Effort%20Low","name":"Effort Low","color":"006b75"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Indexing","name":"Indexing","color":"0b02e1"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Prio-medium","name":"Prio-medium","color":"FF8C00"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Timezones","name":"Timezones","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/37","html_url":"https://github.com/pydata/pandas/milestones/0.17.1","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/37/labels","id":1299459,"number":37,"title":"0.17.1","description":"after 0.17.0 of course!","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":52,"closed_issues":59,"state":"open","created_at":"2015-09-10T14:30:44Z","updated_at":"2015-10-18T22:44:37Z","due_on":"2015-11-14T05:00:00Z","closed_at":null},"comments":0,"created_at":"2015-10-18T22:44:37Z","updated_at":"2015-10-18T22:44:37Z","closed_at":null,"body":"```\r\nIn [3]: idx = pd.date_range('20130101',periods=3,tz='US/Eastern')\r\n\r\nIn [4]: df = DataFrame({'A' : [1,2,3]})\r\n\r\nIn [5]: df['B'] = idx\r\n\r\nIn [6]: df.dtypes\r\nOut[6]: \r\nA                         int64\r\nB    datetime64[ns, US/Eastern]\r\ndtype: object\r\n\r\nIn [7]: df.loc[[True,False,True],'C'] = idx\r\n\r\nIn [8]: df\r\nOut[8]: \r\n   A                         B                   C\r\n0  1 2013-01-01 00:00:00-05:00 2013-01-01 05:00:00\r\n1  2 2013-01-02 00:00:00-05:00                 NaT\r\n2  3 2013-01-03 00:00:00-05:00 2013-01-02 05:00:00\r\n\r\nIn [9]: df.dtypes\r\nOut[9]: \r\nA                         int64\r\nB    datetime64[ns, US/Eastern]\r\nC                datetime64[ns]\r\ndtype: object\r\n```"}}