{"action":"closed","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/12850","repository_url":"https://api.github.com/repos/pydata/pandas","labels_url":"https://api.github.com/repos/pydata/pandas/issues/12850/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/12850/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/12850/events","html_url":"https://github.com/pydata/pandas/issues/12850","id":147236911,"number":12850,"title":"TST/BUG: integer coercion bool with int on windows","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/Dtypes","name":"Dtypes","color":"e102d8"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Windows","name":"Windows","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/38","html_url":"https://github.com/pydata/pandas/milestones/0.18.1","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/38/labels","id":1570594,"number":38,"title":"0.18.1","description":"after 0.18.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":194,"closed_issues":133,"state":"open","created_at":"2016-02-08T15:29:59Z","updated_at":"2016-04-10T19:09:46Z","due_on":"2016-04-26T04:00:00Z","closed_at":null},"comments":2,"created_at":"2016-04-10T16:05:55Z","updated_at":"2016-04-10T19:09:46Z","closed_at":"2016-04-10T19:09:46Z","body":"xref #12841\r\n\r\nthis is a test in ```test_coercion.py, L361```\r\n\r\n```\r\nIn [3]: import pandas as pd\r\n\r\nIn [4]: s = pd.Series([True, False, True, False])\r\n\r\nIn [5]: s.where(s,1)\r\nOut[5]:\r\n0    1\r\n1    1\r\n2    1\r\n3    1\r\ndtype: int32\r\n```\r\n\r\non windows the scalar is not coerced to int64 (as it is on other platforms). IIRC ``.where`` already has quite complicated logic to do this. How simple is this to fix?\r\n\r\ncc @sinhrks "}}