{"action":"created","issue":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/22274","repository_url":"https://api.github.com/repos/pandas-dev/pandas","labels_url":"https://api.github.com/repos/pandas-dev/pandas/issues/22274/labels{/name}","comments_url":"https://api.github.com/repos/pandas-dev/pandas/issues/22274/comments","events_url":"https://api.github.com/repos/pandas-dev/pandas/issues/22274/events","html_url":"https://github.com/pandas-dev/pandas/issues/22274","id":349671251,"node_id":"MDU6SXNzdWUzNDk2NzEyNTE=","number":22274,"title":"API: Add Calendar Day Frequency (\"CD\")","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":77550281,"node_id":"MDU6TGFiZWw3NzU1MDI4MQ==","url":"https://api.github.com/repos/pandas-dev/pandas/labels/Blocker","name":"Blocker","color":"e11d21","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":148,"closed_issues":628,"state":"open","created_at":"2018-03-29T12:00:12Z","updated_at":"2018-09-14T12:43:59Z","due_on":"2018-09-30T07:00:00Z","closed_at":null},"comments":15,"created_at":"2018-08-10T22:09:14Z","updated_at":"2018-09-14T17:55:52Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"This is a proposal to replace #20633.\r\n\r\n`offsets.Day` (`'D'`) is documented to represent calendar day; however, `Day` arithmetic and usage of the `'D'` offset alias (e.g. `df.resample('D')`, `timedelta_range(..., freq='D')`, etc.) currently respects absolute time (i.e. `Day` acts like `Timedelta(days=1)`). This usage is ingrained pretty deeply in a lot of methods and operations and is fairly difficult to walk back to respect the notion of calendar day as stated in the docs.\r\n\r\nInstead, I propose to keep `Day` as is (a timedelta-like frequency like `Hour` (`'H'`)) and add a new frequency `CalendarDay`, `'CD'`. It would act very similarly to `DateOffset(day=1)` but act like a frequency. Thoughts?\r\n"},"comment":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/comments/421436687","html_url":"https://github.com/pandas-dev/pandas/issues/22274#issuecomment-421436687","issue_url":"https://api.github.com/repos/pandas-dev/pandas/issues/22274","id":421436687,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTQzNjY4Nw==","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-09-14T17:55:52Z","updated_at":"2018-09-14T17:55:52Z","author_association":"CONTRIBUTOR","body":"Hmm that would be interesting depreciation cycle of `df.resample('D')`. Just so I understand, `df.resample('D')` would still act like `df.resample('CD')` but give a depreciation warning that `'D'` will change behavior for `resample` in a later release? (if we detect tz-aware data of course)"}}
{"actor":{"display_login":"mroeschke"}}