{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/12601","repository_url":"https://api.github.com/repos/pydata/pandas","labels_url":"https://api.github.com/repos/pydata/pandas/issues/12601/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/12601/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/12601/events","html_url":"https://github.com/pydata/pandas/issues/12601","id":140373772,"number":12601,"title":"BUG: Inconsistent datetime comparison with Tz ","user":{"login":"sinhrks","id":1696302,"avatar_url":"https://avatars.githubusercontent.com/u/1696302?v=3","gravatar_id":"","url":"https://api.github.com/users/sinhrks","html_url":"https://github.com/sinhrks","followers_url":"https://api.github.com/users/sinhrks/followers","following_url":"https://api.github.com/users/sinhrks/following{/other_user}","gists_url":"https://api.github.com/users/sinhrks/gists{/gist_id}","starred_url":"https://api.github.com/users/sinhrks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinhrks/subscriptions","organizations_url":"https://api.github.com/users/sinhrks/orgs","repos_url":"https://api.github.com/users/sinhrks/repos","events_url":"https://api.github.com/users/sinhrks/events{/privacy}","received_events_url":"https://api.github.com/users/sinhrks/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%20Intermediate","name":"Difficulty Intermediate","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/Timeseries","name":"Timeseries","color":"AFEEEE"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Timezones","name":"Timezones","color":"5319e7"}],"state":"open","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":132,"closed_issues":11,"state":"open","created_at":"2016-02-08T15:29:59Z","updated_at":"2016-03-12T21:12:48Z","due_on":"2016-04-26T04:00:00Z","closed_at":null},"comments":1,"created_at":"2016-03-12T11:12:20Z","updated_at":"2016-03-13T15:49:44Z","closed_at":null,"body":"Related to #8306. On current master, ``Timestamp`` comparison results in ``TypeError`` if its timezones are different. However, ``Index`` and ``Series`` implicitly converts tz to GMT\r\n\r\n``` \r\npd.Timestamp('2016-01-01 12:00', tz='US/Eastern') > pd.Timestamp('2016-01-01 08:00')\r\n# TypeError: Cannot compare tz-naive and tz-aware timestamps\r\n\r\n# same result as idx.tz_convert(None) > pd.Timestamp('2016-01-01 08:00')\r\nidx = pd.date_range('2016-01-01 12:00', periods=10, freq='H', tz='Asia/Tokyo')\r\nidx > pd.Timestamp('2016-01-01 08:00')\r\n# array([False, False, False, False, False, False,  True,  True,  True,  True], dtype=bool)\r\n```\r\n\r\nNumeric ops raises ``TypeError`` as expected.\r\n\r\n```\r\nidx - pd.Timestamp('2016-01-01 08:00')\r\n# TypeError: Timestamp subtraction must have the same timezones or no timezones\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/195982567","html_url":"https://github.com/pydata/pandas/issues/12601#issuecomment-195982567","issue_url":"https://api.github.com/repos/pydata/pandas/issues/12601","id":195982567,"user":{"login":"gliptak","id":50109,"avatar_url":"https://avatars.githubusercontent.com/u/50109?v=3","gravatar_id":"","url":"https://api.github.com/users/gliptak","html_url":"https://github.com/gliptak","followers_url":"https://api.github.com/users/gliptak/followers","following_url":"https://api.github.com/users/gliptak/following{/other_user}","gists_url":"https://api.github.com/users/gliptak/gists{/gist_id}","starred_url":"https://api.github.com/users/gliptak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gliptak/subscriptions","organizations_url":"https://api.github.com/users/gliptak/orgs","repos_url":"https://api.github.com/users/gliptak/repos","events_url":"https://api.github.com/users/gliptak/events{/privacy}","received_events_url":"https://api.github.com/users/gliptak/received_events","type":"User","site_admin":false},"created_at":"2016-03-13T15:49:44Z","updated_at":"2016-03-13T15:49:44Z","body":"I opened https://github.com/numpy/numpy/issues/7390  Does this belong to ```pandas``` instead? Thanks"}}