-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
ENH: Resolutions for month/qtr/year #34587
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
Conversation
|
Hello @jbrockmendel! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-06-09 21:06:34 UTC |
|
Some questions:
|
Yep, oversight on my part. Weekly we could reasonably add to Resolution, but Business makes less sense. De-duplication may not be viable after all.
It does not affect the behavior. Adding the month/quarter/year resos is what allows us to use Resolution objects in the relevant indexing code without changing any behavior. |
jreback
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok if/elif and needs a rebase
|
rebased+green |
|
thanks! |
This does three things
pd.period_range("2017", periods=3, freq="A").resolutionis now "year" instead of "day", which is more accurate.ResolutionandFreqGroupwill be re-labellings of each other, so we can de-duplicate them. They will end up living in tslibs.dtypes.