Skip to content

REF: implement c_FreqGroup, FreqGroup in tslibs.dtypes #34588

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

Merged
merged 2 commits into from
Jun 8, 2020

Conversation

jbrockmendel
Copy link
Member

These are already used in libperiod, better to be explicit about it.

Coming up: make FreqGroup into an enum with helper methods to convert between FreqGroup/PeriodDtype/DateOffset/Resolution

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question but on board with the concept

@@ -106,3 +106,20 @@ _period_code_map.update({
"W": 4000, # Weekly
"C": 5000, # Custom Business Day
})


class FreqGroup:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe overlooking something simple but do we need both or does the enum alone suffice?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the one in the .pxd we can't access from python-space

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also i expect before long we'll make this one into class FreqGroup(Enum) to de-duplicate it with Resolution

@WillAyd WillAyd added the Clean label Jun 7, 2020
@jreback jreback added this to the 1.1 milestone Jun 8, 2020
@jreback jreback added the Frequency DateOffsets label Jun 8, 2020
@jreback jreback merged commit fc37087 into pandas-dev:master Jun 8, 2020
@jbrockmendel jbrockmendel deleted the ref-freqgroup branch June 8, 2020 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants