{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/12988","repository_url":"https://api.github.com/repos/pydata/pandas","labels_url":"https://api.github.com/repos/pydata/pandas/issues/12988/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/12988/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/12988/events","html_url":"https://github.com/pydata/pandas/issues/12988","id":151011574,"number":12988,"title":"Series.isin(values) raises ValueError if values is a set","user":{"login":"ch41rmn","id":1684060,"avatar_url":"https://avatars.githubusercontent.com/u/1684060?v=3","gravatar_id":"","url":"https://api.github.com/users/ch41rmn","html_url":"https://github.com/ch41rmn","followers_url":"https://api.github.com/users/ch41rmn/followers","following_url":"https://api.github.com/users/ch41rmn/following{/other_user}","gists_url":"https://api.github.com/users/ch41rmn/gists{/gist_id}","starred_url":"https://api.github.com/users/ch41rmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ch41rmn/subscriptions","organizations_url":"https://api.github.com/users/ch41rmn/orgs","repos_url":"https://api.github.com/users/ch41rmn/repos","events_url":"https://api.github.com/users/ch41rmn/events{/privacy}","received_events_url":"https://api.github.com/users/ch41rmn/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%20Novice","name":"Difficulty Novice","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/Timeseries","name":"Timeseries","color":"AFEEEE"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/32","html_url":"https://github.com/pydata/pandas/milestones/Next%20Major%20Release","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/32/labels","id":933188,"number":32,"title":"Next Major Release","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":948,"closed_issues":132,"state":"open","created_at":"2015-01-13T10:53:19Z","updated_at":"2016-04-27T00:20:42Z","due_on":"2016-08-31T04:00:00Z","closed_at":null},"comments":5,"created_at":"2016-04-26T00:15:25Z","updated_at":"2016-04-28T05:56:07Z","closed_at":null,"body":"When trying to use `Series.isin(values)` for Timestamps, an exception is raised if `values` is a set.\r\n```\r\nd = {'Dates':[pd.Timestamp('2013-01-02'),\r\n              pd.Timestamp('2013-01-03'),\r\n              pd.Timestamp('2013-01-04')],\r\n     'Num1':[1,2,3],\r\n     'Num2':[-1,-2,-3]}\r\n\r\ndf = pd.DataFrame(data=d)\r\n\r\n>>> df['Dates'].isin({pd.Timestamp('2013-01-04')})\r\nValueError: Buffer has wrong number of dimensions (expected 1, got 0)\r\n\r\n>>> df['Dates'].isin([pd.Timestamp('2013-01-04')])\r\n0    False\r\n1    False\r\n2     True\r\nName: Dates, dtype: bool\r\n```\r\n\r\n#### output of ``pd.show_versions()``\r\n```\r\nINSTALLED VERSIONS\r\n------------------\r\ncommit: None\r\npython: 2.7.11.final.0\r\npython-bits: 64\r\nOS: Linux\r\nOS-release: 4.1.13-100.fc21.x86_64\r\nmachine: x86_64\r\nprocessor: x86_64\r\nbyteorder: little\r\nLC_ALL: None\r\nLANG: en_AU.utf8\r\n\r\npandas: 0.18.0\r\nnose: None\r\npip: 8.1.1\r\nsetuptools: 20.2.2\r\nCython: None\r\nnumpy: 1.11.0\r\nscipy: 0.17.0\r\nstatsmodels: None\r\nxarray: 0.7.2\r\nIPython: 4.1.2\r\nsphinx: 1.3.5\r\npatsy: None\r\ndateutil: 2.4.2\r\npytz: 2015.7\r\nblosc: None\r\nbottleneck: 1.0.0\r\ntables: 3.2.2\r\nnumexpr: 2.5.2\r\nmatplotlib: 1.5.1\r\nopenpyxl: None\r\nxlrd: None\r\nxlwt: None\r\nxlsxwriter: None\r\nlxml: None\r\nbs4: None\r\nhtml5lib: None\r\nhttplib2: None\r\napiclient: None\r\nsqlalchemy: None\r\npymysql: None\r\npsycopg2: None\r\njinja2: 2.8\r\nboto: None\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/215316980","html_url":"https://github.com/pydata/pandas/issues/12988#issuecomment-215316980","issue_url":"https://api.github.com/repos/pydata/pandas/issues/12988","id":215316980,"user":{"login":"ch41rmn","id":1684060,"avatar_url":"https://avatars.githubusercontent.com/u/1684060?v=3","gravatar_id":"","url":"https://api.github.com/users/ch41rmn","html_url":"https://github.com/ch41rmn","followers_url":"https://api.github.com/users/ch41rmn/followers","following_url":"https://api.github.com/users/ch41rmn/following{/other_user}","gists_url":"https://api.github.com/users/ch41rmn/gists{/gist_id}","starred_url":"https://api.github.com/users/ch41rmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ch41rmn/subscriptions","organizations_url":"https://api.github.com/users/ch41rmn/orgs","repos_url":"https://api.github.com/users/ch41rmn/repos","events_url":"https://api.github.com/users/ch41rmn/events{/privacy}","received_events_url":"https://api.github.com/users/ch41rmn/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T05:56:07Z","updated_at":"2016-04-28T05:56:07Z","body":"I added the set --> list coercion in `pandas.core.algorithms.isin`. See pull request."}}