{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/10265","labels_url":"https://api.github.com/repos/pydata/pandas/issues/10265/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/10265/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/10265/events","html_url":"https://github.com/pydata/pandas/pull/10265","id":84787632,"number":10265,"title":"BUG: Ensure 'coerce' actually coerces datatypes","user":{"login":"bashtage","id":5585221,"avatar_url":"https://avatars.githubusercontent.com/u/5585221?v=3","gravatar_id":"","url":"https://api.github.com/users/bashtage","html_url":"https://github.com/bashtage","followers_url":"https://api.github.com/users/bashtage/followers","following_url":"https://api.github.com/users/bashtage/following{/other_user}","gists_url":"https://api.github.com/users/bashtage/gists{/gist_id}","starred_url":"https://api.github.com/users/bashtage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bashtage/subscriptions","organizations_url":"https://api.github.com/users/bashtage/orgs","repos_url":"https://api.github.com/users/bashtage/repos","events_url":"https://api.github.com/users/bashtage/events{/privacy}","received_events_url":"https://api.github.com/users/bashtage/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/API%20Design","name":"API Design","color":"AD7FA8"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Dtypes","name":"Dtypes","color":"e102d8"}],"state":"open","locked":false,"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":126,"closed_issues":0,"state":"open","created_at":"2015-03-23T10:47:38Z","updated_at":"2015-06-04T20:28:26Z","due_on":"2015-07-31T04:00:00Z","closed_at":null},"comments":8,"created_at":"2015-06-03T21:53:02Z","updated_at":"2015-06-04T21:56:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pydata/pandas/pulls/10265","html_url":"https://github.com/pydata/pandas/pull/10265","diff_url":"https://github.com/pydata/pandas/pull/10265.diff","patch_url":"https://github.com/pydata/pandas/pull/10265.patch"},"body":"Changes behavior of convert objects so that passing 'coerce' will\r\nensure that data of the correct type is returned, even if all\r\nvalues are null-types (NaN or NaT).\r\n\r\ncloses #9589"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/109067730","html_url":"https://github.com/pydata/pandas/pull/10265#issuecomment-109067730","issue_url":"https://api.github.com/repos/pydata/pandas/issues/10265","id":109067730,"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},"created_at":"2015-06-04T21:56:35Z","updated_at":"2015-06-04T21:56:35Z","body":"@bashtage looks pretty good.\r\n\r\nbtw, I think now might be a good time to change the actual argument names as well. ( and deprecate the originals).\r\n\r\nso instead of:\r\n\r\n``convert_objects(self, convert_dates=True, convert_numeric=False, convert_timedeltas=True, copy=True)``\r\n\r\nmaybe?\r\n``convert_objects(self, datetime=True, numeric=False, timedelta=True, copy=True)``\r\n\r\n or *maybe* we just add to directly to ``.astype(....)`` instead? (in effect make the ``dtype`` arg optional if the others are passed)\r\n\r\nfurther I would not object to additional args ``floating=False,integer=False`` (to be cooperative with ``numeric``, and would clearly have to have a precedence order), unless that is MORE confusing."}}