Skip to content

REF: make FreqGroup an Enum #39027

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 3 commits into from
Jan 8, 2021

Conversation

jbrockmendel
Copy link
Member

No description provided.

@@ -872,14 +872,15 @@ def _annual_finder(vmin, vmax, freq):
def get_finder(freq: BaseOffset):
dtype_code = freq._period_dtype_code
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldnt this return FreqGroup too?

Copy link
Member Author

Choose a reason for hiding this comment

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

there isnt a one-to-one mapping from period_dtype_code to FreqGroup

Copy link
Contributor

Choose a reason for hiding this comment

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

k, maybe try to add a public method to freq which does this in the future

@jreback jreback added Frequency DateOffsets Refactor Internal refactoring of code labels Jan 8, 2021
@jreback jreback added this to the 1.3 milestone Jan 8, 2021
@jreback jreback merged commit d00438b into pandas-dev:master Jan 8, 2021
@jbrockmendel jbrockmendel deleted the ref-freq_group-enum branch January 8, 2021 15:53
luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frequency DateOffsets Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants