{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/10363","labels_url":"https://api.github.com/repos/pydata/pandas/issues/10363/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/10363/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/10363/events","html_url":"https://github.com/pydata/pandas/issues/10363","id":88536091,"number":10363,"title":"Inconsistent Series/scalar comparison behavior based upon the scalar's type","user":{"login":"naftaliharris","id":1879083,"avatar_url":"https://avatars.githubusercontent.com/u/1879083?v=3","gravatar_id":"","url":"https://api.github.com/users/naftaliharris","html_url":"https://github.com/naftaliharris","followers_url":"https://api.github.com/users/naftaliharris/followers","following_url":"https://api.github.com/users/naftaliharris/following{/other_user}","gists_url":"https://api.github.com/users/naftaliharris/gists{/gist_id}","starred_url":"https://api.github.com/users/naftaliharris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naftaliharris/subscriptions","organizations_url":"https://api.github.com/users/naftaliharris/orgs","repos_url":"https://api.github.com/users/naftaliharris/repos","events_url":"https://api.github.com/users/naftaliharris/events{/privacy}","received_events_url":"https://api.github.com/users/naftaliharris/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Bug","name":"Bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-15T20:46:32Z","updated_at":"2015-06-15T21:08:49Z","closed_at":"2015-06-15T21:01:34Z","body":"It's pretty unexpected that the behavior of `x <= pd.Series(...)` depends on whether `x` is a python float or a `np.float64`:\r\n\r\n```python\r\n>>> import pandas as pd\r\n>>> import numpy as np\r\n>>> 5 <= pd.Series(range(10))\r\n0    False\r\n1    False\r\n2    False\r\n3    False\r\n4    False\r\n5     True\r\n6     True\r\n7     True\r\n8     True\r\n9     True\r\ndtype: bool\r\n>>> np.float64(5) <= pd.Series(range(10))\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/local/lib/python2.7/dist-packages/pandas/core/ops.py\", line 588, in wrapper\r\n    if len(self) != len(other):\r\nTypeError: len() of unsized object\r\n>>> pd.show_versions()\r\n\r\nINSTALLED VERSIONS\r\n------------------\r\ncommit: None\r\npython: 2.7.3.final.0\r\npython-bits: 64\r\nOS: Linux\r\nOS-release: 3.2.0-54-virtual\r\nmachine: x86_64\r\nprocessor: x86_64\r\nbyteorder: little\r\nLC_ALL: None\r\nLANG: en_US.UTF-8\r\n\r\npandas: 0.16.2\r\nnose: 1.3.3\r\nCython: None\r\nnumpy: 1.9.2\r\nscipy: 0.14.0\r\nstatsmodels: 0.5.0\r\nIPython: 0.12.1\r\nsphinx: None\r\npatsy: 0.3.0\r\ndateutil: 2.2\r\npytz: 2014.4\r\nbottleneck: None\r\ntables: None\r\nnumexpr: None\r\nmatplotlib: 1.3.1\r\nopenpyxl: 1.8.6\r\nxlrd: 0.9.3\r\nxlwt: None\r\nxlsxwriter: None\r\nlxml: 3.3.2\r\nbs4: None\r\nhtml5lib: None\r\nhttplib2: 0.7.2\r\napiclient: None\r\nsqlalchemy: None\r\npymysql: None\r\npsycopg2: 2.5.2 (dt dec pq3 ext)\r\n>>>\r\n```"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/112212776","html_url":"https://github.com/pydata/pandas/issues/10363#issuecomment-112212776","issue_url":"https://api.github.com/repos/pydata/pandas/issues/10363","id":112212776,"user":{"login":"naftaliharris","id":1879083,"avatar_url":"https://avatars.githubusercontent.com/u/1879083?v=3","gravatar_id":"","url":"https://api.github.com/users/naftaliharris","html_url":"https://github.com/naftaliharris","followers_url":"https://api.github.com/users/naftaliharris/followers","following_url":"https://api.github.com/users/naftaliharris/following{/other_user}","gists_url":"https://api.github.com/users/naftaliharris/gists{/gist_id}","starred_url":"https://api.github.com/users/naftaliharris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naftaliharris/subscriptions","organizations_url":"https://api.github.com/users/naftaliharris/orgs","repos_url":"https://api.github.com/users/naftaliharris/repos","events_url":"https://api.github.com/users/naftaliharris/events{/privacy}","received_events_url":"https://api.github.com/users/naftaliharris/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T21:08:49Z","updated_at":"2015-06-15T21:08:49Z","body":"Excellent, thanks!"}}