Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

ycdjun
Copy link

@ycdjun ycdjun commented Mar 18, 2025

…FEB' and 'QS-NOV'

@ycdjun ycdjun changed the title Resolving #61086 : BUG: Collision between equivalent frequencies 'QS-… BUG: Collision between equivalent frequencies 'QS-… Mar 18, 2025
Copy link
Member

@rhshadrach rhshadrach left a 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.

offset1 = to_offset(freq)
offset2 = to_offset(inferred_freq)

freq_equal = type(offset1) == type(offset2)
Copy link
Member

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.

@rhshadrach rhshadrach added Bug Datetime Datetime data dtype Frequency DateOffsets labels Mar 19, 2025
@ycdjun ycdjun requested a review from rhshadrach March 21, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype Frequency DateOffsets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Collision between equivalent frequencies 'QS-FEB' and 'QS-NOV'
2 participants