-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
BUG: Collision between equivalent frequencies 'QS-… #61142
base: main
Are you sure you want to change the base?
Conversation
…ncies 'QS-FEB' and 'QS-NOV'
…ncies 'QS-FEB' and 'QS-NOV'
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.
Thanks for the PR! I do not think the condition used here is quite correct. I mentioned a possible way forward in #61086 (comment), but open to alternatives.
pandas/core/arrays/datetimelike.py
Outdated
offset1 = to_offset(freq) | ||
offset2 = to_offset(inferred_freq) | ||
|
||
freq_equal = type(offset1) == type(offset2) |
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.
I do not think this is sufficient, for example QuarterBegin: startingMonth=2
and QuarterBegin: startingMonth=3
will both have the same type, but are not the same frequency.
…ncies 'QS-FEB' and 'QS-NOV'
…FEB' and 'QS-NOV'
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.