Skip to content

ENH: to_offset "year"/"quarter"/"month"/"day"/...? #34586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jbrockmendel opened this issue Jun 4, 2020 · 0 comments
Open

ENH: to_offset "year"/"quarter"/"month"/"day"/...? #34586

jbrockmendel opened this issue Jun 4, 2020 · 0 comments
Labels

Comments

@jbrockmendel
Copy link
Member

In the process of untangling Resolution/FreqGroup/PeriodDtype/Offsets im finding it would be helpful if to_offset("year") behaved like to_offset("Y") etc. But apparently these are specifically deprecated.

This test was introduced here (commit but no PR) and is listed as closing #11854 and #12540, but neither of those really make it clear to me why we wouldn't allow these.

Any objection to having to_offset recognize these strings?

@jbrockmendel jbrockmendel added Bug Needs Triage Issue that has not been reviewed by a pandas team member API Design Frequency DateOffsets and removed Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants