{"action":"created","issue":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/17109","repository_url":"https://api.github.com/repos/pandas-dev/pandas","labels_url":"https://api.github.com/repos/pandas-dev/pandas/issues/17109/labels{/name}","comments_url":"https://api.github.com/repos/pandas-dev/pandas/issues/17109/comments","events_url":"https://api.github.com/repos/pandas-dev/pandas/issues/17109/events","html_url":"https://github.com/pandas-dev/pandas/pull/17109","id":246502967,"number":17109,"title":"API: Localize Series when calling to_datetime with utc=True (#6415)","user":{"login":"mroeschke","id":10647082,"avatar_url":"https://avatars0.githubusercontent.com/u/10647082?v=4","gravatar_id":"","url":"https://api.github.com/users/mroeschke","html_url":"https://github.com/mroeschke","followers_url":"https://api.github.com/users/mroeschke/followers","following_url":"https://api.github.com/users/mroeschke/following{/other_user}","gists_url":"https://api.github.com/users/mroeschke/gists{/gist_id}","starred_url":"https://api.github.com/users/mroeschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroeschke/subscriptions","organizations_url":"https://api.github.com/users/mroeschke/orgs","repos_url":"https://api.github.com/users/mroeschke/repos","events_url":"https://api.github.com/users/mroeschke/events{/privacy}","received_events_url":"https://api.github.com/users/mroeschke/received_events","type":"User","site_admin":false},"labels":[{"id":35818298,"url":"https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design","name":"API Design","color":"AD7FA8","default":false},{"id":60458168,"url":"https://api.github.com/repos/pandas-dev/pandas/labels/Timezones","name":"Timezones","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/pandas-dev/pandas/milestones/46","html_url":"https://github.com/pandas-dev/pandas/milestone/46","labels_url":"https://api.github.com/repos/pandas-dev/pandas/milestones/46/labels","id":2406656,"number":46,"title":"0.21.0","description":"","creator":{"login":"jreback","id":953992,"avatar_url":"https://avatars2.githubusercontent.com/u/953992?v=4","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":122,"closed_issues":372,"state":"open","created_at":"2017-03-23T13:26:25Z","updated_at":"2017-08-23T20:15:26Z","due_on":"2017-09-30T07:00:00Z","closed_at":null},"comments":12,"created_at":"2017-07-29T06:19:28Z","updated_at":"2017-08-23T20:27:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pandas-dev/pandas/pulls/17109","html_url":"https://github.com/pandas-dev/pandas/pull/17109","diff_url":"https://github.com/pandas-dev/pandas/pull/17109.diff","patch_url":"https://github.com/pandas-dev/pandas/pull/17109.patch"},"body":" - [x] closes #6415\r\n - [x] tests added / passed\r\n - [x] passes ``git diff upstream/master -u -- \"*.py\" | flake8 --diff``\r\n - [x] whatsnew entry\r\n\r\nWhen `_convert_listlike` passes a `np.array` into a `Series`, the `Series` seems to initially be of naive datetime dtype. Localized `Series` if `utc=True`. \r\n\r\nI made one minor change to an existing test that `tz_localize` and index when it originally set the index with a `Series` with `pd.to_datetime(...utc=True)`."},"comment":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/comments/324452698","html_url":"https://github.com/pandas-dev/pandas/pull/17109#issuecomment-324452698","issue_url":"https://api.github.com/repos/pandas-dev/pandas/issues/17109","id":324452698,"user":{"login":"mroeschke","id":10647082,"avatar_url":"https://avatars0.githubusercontent.com/u/10647082?v=4","gravatar_id":"","url":"https://api.github.com/users/mroeschke","html_url":"https://github.com/mroeschke","followers_url":"https://api.github.com/users/mroeschke/followers","following_url":"https://api.github.com/users/mroeschke/following{/other_user}","gists_url":"https://api.github.com/users/mroeschke/gists{/gist_id}","starred_url":"https://api.github.com/users/mroeschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroeschke/subscriptions","organizations_url":"https://api.github.com/users/mroeschke/orgs","repos_url":"https://api.github.com/users/mroeschke/repos","events_url":"https://api.github.com/users/mroeschke/events{/privacy}","received_events_url":"https://api.github.com/users/mroeschke/received_events","type":"User","site_admin":false},"created_at":"2017-08-23T20:27:35Z","updated_at":"2017-08-23T20:27:35Z","body":"Thanks for reviewing @jreback and @jorisvandenbossche. Apologies for being idle on this.\r\n\r\n@jorisvandenbossche A lot of the SQL tests check the conversion of a `DateCol` (native datetime column), so those tests do not need changes. but I need to double check the tests that convert `DateColWithTz` (tz aware datetime column). "}}
{"actor":{"display_login":"mroeschke"}}