Skip to content

REF: move Resolution to tslibs.dtypes #34813

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 16, 2020
Merged

Conversation

jbrockmendel
Copy link
Member

This is pretty much a clean move, in preparation for making FreqGroup an enum and trying to de-duplicate our 3+ enum-like classes

@jorisvandenbossche
Copy link
Member

At some point in one of the previous PRs, you said that deduplication might not be possible after all (#34587 (comment)). Can you give a bit of context on what your idea / goal is on that now?

@jreback jreback added the Frequency DateOffsets label Jun 16, 2020
@jreback jreback added this to the 1.1 milestone Jun 16, 2020
@@ -127,6 +131,7 @@ _attrname_to_abbrevs = {
"nanosecond": "N",
}
cdef dict attrname_to_abbrevs = _attrname_to_abbrevs
cdef dict _abbrev_to_attrnames = {v: k for k, v in attrname_to_abbrevs.items()}
Copy link
Contributor

Choose a reason for hiding this comment

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

should make these both private or public

Copy link
Contributor

Choose a reason for hiding this comment

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

followon ok

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 public one is used outside this module, the private one is not

@jreback jreback merged commit 1361d9a into pandas-dev:master Jun 16, 2020
@jbrockmendel
Copy link
Member Author

Can you give a bit of context on what your idea / goal is on that now?

The mapping between FreqGroup and Resolution is not going to be a bijection, but im now thinking that both FreqGroup.FR_DAY and FreqGroup.FR_BUS map to Resolution.RESO_DAY. This will allow us to clean up semi-kludge here.

@jbrockmendel jbrockmendel deleted the ref-reso branch June 16, 2020 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frequency DateOffsets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants