{"action":"created","issue":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/22288","repository_url":"https://api.github.com/repos/pandas-dev/pandas","labels_url":"https://api.github.com/repos/pandas-dev/pandas/issues/22288/labels{/name}","comments_url":"https://api.github.com/repos/pandas-dev/pandas/issues/22288/comments","events_url":"https://api.github.com/repos/pandas-dev/pandas/issues/22288/events","html_url":"https://github.com/pandas-dev/pandas/pull/22288","id":349773618,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3Nzk4NTI4","number":22288,"title":"API: Add CalendarDay ('CD') offset","user":{"login":"mroeschke","id":10647082,"node_id":"MDQ6VXNlcjEwNjQ3MDgy","avatar_url":"https://avatars0.githubusercontent.com/u/10647082?v=4","gravatar_id":"","url":"https://api.github.com/users/mroeschke","html_url":"https://github.com/mroeschke","followers_url":"https://api.github.com/users/mroeschke/followers","following_url":"https://api.github.com/users/mroeschke/following{/other_user}","gists_url":"https://api.github.com/users/mroeschke/gists{/gist_id}","starred_url":"https://api.github.com/users/mroeschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroeschke/subscriptions","organizations_url":"https://api.github.com/users/mroeschke/orgs","repos_url":"https://api.github.com/users/mroeschke/repos","events_url":"https://api.github.com/users/mroeschke/events{/privacy}","received_events_url":"https://api.github.com/users/mroeschke/received_events","type":"User","site_admin":false},"labels":[{"id":35818298,"node_id":"MDU6TGFiZWwzNTgxODI5OA==","url":"https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design","name":"API Design","color":"AD7FA8","default":false},{"id":53181044,"node_id":"MDU6TGFiZWw1MzE4MTA0NA==","url":"https://api.github.com/repos/pandas-dev/pandas/labels/Frequency","name":"Frequency","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/pandas-dev/pandas/milestones/55","html_url":"https://github.com/pandas-dev/pandas/milestone/55","labels_url":"https://api.github.com/repos/pandas-dev/pandas/milestones/55/labels","id":3228419,"node_id":"MDk6TWlsZXN0b25lMzIyODQxOQ==","number":55,"title":"0.24.0","description":"","creator":{"login":"jorisvandenbossche","id":1020496,"node_id":"MDQ6VXNlcjEwMjA0OTY=","avatar_url":"https://avatars2.githubusercontent.com/u/1020496?v=4","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":135,"closed_issues":553,"state":"open","created_at":"2018-03-29T12:00:12Z","updated_at":"2018-08-25T02:05:41Z","due_on":"2018-09-30T07:00:00Z","closed_at":null},"comments":10,"created_at":"2018-08-12T00:26:27Z","updated_at":"2018-08-25T06:10:09Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/pandas-dev/pandas/pulls/22288","html_url":"https://github.com/pandas-dev/pandas/pull/22288","diff_url":"https://github.com/pandas-dev/pandas/pull/22288.diff","patch_url":"https://github.com/pandas-dev/pandas/pull/22288.patch"},"body":"- [x] closes #22274\r\n- [x] tests added / passed\r\n- [x] passes `git diff upstream/master -u -- \"*.py\" | flake8 --diff`\r\n- [x] whatsnew entry\r\n\r\nAdds `CalendarDay` and `'CD'` offset and alias respectively and changes `Day` (`'D'`) in `date_range` to respect calendar day. \r\n\r\nWith regards to `CalendarDay` added tests for:\r\n- `CalendarDay` arithmetic with itself, datetimes, and timedeltas (which should raise)\r\n- `'CD'` with use in `date_range` and `timedelta_range` (which should raise)\r\n- resampling with `'CD'`\r\n\r\nAlso refactored `_generate_range ` for `date_range` since we no longer have to check for `Day`\r\n"},"comment":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/comments/415942419","html_url":"https://github.com/pandas-dev/pandas/pull/22288#issuecomment-415942419","issue_url":"https://api.github.com/repos/pandas-dev/pandas/issues/22288","id":415942419,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTk0MjQxOQ==","user":{"login":"mroeschke","id":10647082,"node_id":"MDQ6VXNlcjEwNjQ3MDgy","avatar_url":"https://avatars0.githubusercontent.com/u/10647082?v=4","gravatar_id":"","url":"https://api.github.com/users/mroeschke","html_url":"https://github.com/mroeschke","followers_url":"https://api.github.com/users/mroeschke/followers","following_url":"https://api.github.com/users/mroeschke/following{/other_user}","gists_url":"https://api.github.com/users/mroeschke/gists{/gist_id}","starred_url":"https://api.github.com/users/mroeschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroeschke/subscriptions","organizations_url":"https://api.github.com/users/mroeschke/orgs","repos_url":"https://api.github.com/users/mroeschke/repos","events_url":"https://api.github.com/users/mroeschke/events{/privacy}","received_events_url":"https://api.github.com/users/mroeschke/received_events","type":"User","site_admin":false},"created_at":"2018-08-25T06:10:09Z","updated_at":"2018-08-25T06:10:09Z","author_association":"CONTRIBUTOR","body":"ping @jbrockmendel @chris-b1 "}}
{"actor":{"display_login":"mroeschke"}}