{"action":"created","issue":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/21472","repository_url":"https://api.github.com/repos/pandas-dev/pandas","labels_url":"https://api.github.com/repos/pandas-dev/pandas/issues/21472/labels{/name}","comments_url":"https://api.github.com/repos/pandas-dev/pandas/issues/21472/comments","events_url":"https://api.github.com/repos/pandas-dev/pandas/issues/21472/events","html_url":"https://github.com/pandas-dev/pandas/pull/21472","id":332225806,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0NzYwOTgx","number":21472,"title":"BUG #21374: Fix divison with complex numbers in eval() method","user":{"login":"fillipe-gsm","id":10814987,"node_id":"MDQ6VXNlcjEwODE0OTg3","avatar_url":"https://avatars0.githubusercontent.com/u/10814987?v=4","gravatar_id":"","url":"https://api.github.com/users/fillipe-gsm","html_url":"https://github.com/fillipe-gsm","followers_url":"https://api.github.com/users/fillipe-gsm/followers","following_url":"https://api.github.com/users/fillipe-gsm/following{/other_user}","gists_url":"https://api.github.com/users/fillipe-gsm/gists{/gist_id}","starred_url":"https://api.github.com/users/fillipe-gsm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fillipe-gsm/subscriptions","organizations_url":"https://api.github.com/users/fillipe-gsm/orgs","repos_url":"https://api.github.com/users/fillipe-gsm/repos","events_url":"https://api.github.com/users/fillipe-gsm/events{/privacy}","received_events_url":"https://api.github.com/users/fillipe-gsm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-14T02:07:36Z","updated_at":"2018-06-14T10:01:23Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/pandas-dev/pandas/pulls/21472","html_url":"https://github.com/pandas-dev/pandas/pull/21472","diff_url":"https://github.com/pandas-dev/pandas/pull/21472.diff","patch_url":"https://github.com/pandas-dev/pandas/pull/21472.patch"},"body":"- [ ] closes #21374 \r\n- [ ] tests added / passed\r\n```python\r\ndata = {\"a\": [1 + 2j], \"b\": [1 + 1j]}\r\ndf = pd.DataFrame(data = data)\r\ndf.eval(\"a/b\")\r\n```\r\nExpected output:\r\n```python\r\ndf[\"a\"]/df[\"b\"]\r\n\r\n0    (1.5+0.5j)\r\ndtype: complex128\r\n```\r\nNew result:\r\n```python\r\ndf.eval(\"a/b\")\r\n\r\n0    (1.5+0.5j)\r\ndtype: complex128\r\n```\r\n- [ ] passes `git diff upstream/master -u -- \"*.py\" | flake8 --diff`\r\n- [ ] whatsnew entry\r\n"},"comment":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/comments/397241465","html_url":"https://github.com/pandas-dev/pandas/pull/21472#issuecomment-397241465","issue_url":"https://api.github.com/repos/pandas-dev/pandas/issues/21472","id":397241465,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzI0MTQ2NQ==","user":{"login":"jreback","id":953992,"node_id":"MDQ6VXNlcjk1Mzk5Mg==","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},"created_at":"2018-06-14T10:01:23Z","updated_at":"2018-06-14T10:01:23Z","author_association":"CONTRIBUTOR","body":"tests!"}}
{"actor":{"display_login":"jreback"}}