{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/13478","repository_url":"https://api.github.com/repos/pydata/pandas","labels_url":"https://api.github.com/repos/pydata/pandas/issues/13478/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/13478/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/13478/events","html_url":"https://github.com/pydata/pandas/issues/13478","id":161009349,"number":13478,"title":"Pythonic chained comparisons","user":{"login":"VelizarVESSELINOV","id":8209940,"avatar_url":"https://avatars.githubusercontent.com/u/8209940?v=3","gravatar_id":"","url":"https://api.github.com/users/VelizarVESSELINOV","html_url":"https://github.com/VelizarVESSELINOV","followers_url":"https://api.github.com/users/VelizarVESSELINOV/followers","following_url":"https://api.github.com/users/VelizarVESSELINOV/following{/other_user}","gists_url":"https://api.github.com/users/VelizarVESSELINOV/gists{/gist_id}","starred_url":"https://api.github.com/users/VelizarVESSELINOV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VelizarVESSELINOV/subscriptions","organizations_url":"https://api.github.com/users/VelizarVESSELINOV/orgs","repos_url":"https://api.github.com/users/VelizarVESSELINOV/repos","events_url":"https://api.github.com/users/VelizarVESSELINOV/events{/privacy}","received_events_url":"https://api.github.com/users/VelizarVESSELINOV/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Usage%20Question","name":"Usage Question","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/33","html_url":"https://github.com/pydata/pandas/milestones/No%20action","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/33/labels","id":997544,"number":33,"title":"No action","description":"A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n","creator":{"login":"jorisvandenbossche","id":1020496,"avatar_url":"https://avatars.githubusercontent.com/u/1020496?v=3","gravatar_id":"","url":"https://api.github.com/users/jorisvandenbossche","html_url":"https://github.com/jorisvandenbossche","followers_url":"https://api.github.com/users/jorisvandenbossche/followers","following_url":"https://api.github.com/users/jorisvandenbossche/following{/other_user}","gists_url":"https://api.github.com/users/jorisvandenbossche/gists{/gist_id}","starred_url":"https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorisvandenbossche/subscriptions","organizations_url":"https://api.github.com/users/jorisvandenbossche/orgs","repos_url":"https://api.github.com/users/jorisvandenbossche/repos","events_url":"https://api.github.com/users/jorisvandenbossche/events{/privacy}","received_events_url":"https://api.github.com/users/jorisvandenbossche/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":195,"state":"open","created_at":"2015-02-26T19:29:05Z","updated_at":"2016-06-18T21:19:03Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-06-18T06:11:42Z","updated_at":"2016-06-19T12:46:51Z","closed_at":"2016-06-18T10:51:52Z","body":"#### Code Sample, a copy-pastable example if possible\r\ndtw[(x <= dtw.id < y)]\r\n\r\n#### Expected Output\r\nsame as dtw[(x <= dtw.id) & (dtw.id < y)] or dtw.query('{}<=id<{}'.format(x, y)), but these solutions are less Pythonic\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/226995557","html_url":"https://github.com/pydata/pandas/issues/13478#issuecomment-226995557","issue_url":"https://api.github.com/repos/pydata/pandas/issues/13478","id":226995557,"user":{"login":"TomAugspurger","id":1312546,"avatar_url":"https://avatars.githubusercontent.com/u/1312546?v=3","gravatar_id":"","url":"https://api.github.com/users/TomAugspurger","html_url":"https://github.com/TomAugspurger","followers_url":"https://api.github.com/users/TomAugspurger/followers","following_url":"https://api.github.com/users/TomAugspurger/following{/other_user}","gists_url":"https://api.github.com/users/TomAugspurger/gists{/gist_id}","starred_url":"https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomAugspurger/subscriptions","organizations_url":"https://api.github.com/users/TomAugspurger/orgs","repos_url":"https://api.github.com/users/TomAugspurger/repos","events_url":"https://api.github.com/users/TomAugspurger/events{/privacy}","received_events_url":"https://api.github.com/users/TomAugspurger/received_events","type":"User","site_admin":false},"created_at":"2016-06-19T12:46:51Z","updated_at":"2016-06-19T12:46:51Z","body":"One place we do have control over it is inside `.query`, where `btw.query('@x <= id < @y')` works like you expected."}}
{"actor":{"display_login":"TomAugspurger"}}