Skip to content

BUG: TimedeltaIndex.shift() infers freq when possible (GH#62094) #62095

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

Closed

Conversation

Aniketsy
Copy link

(GH#62094)
This PR fixes a regression on main where TimedeltaIndex.shift() raised a NullFrequencyError if the index had freq=None, even when the index was regular and its frequency could be inferred.

Please let me know if my approach or fix needs any improvements . I’m open to feedback and happy to make changes based on suggestions.
Thankyou!

@Aniketsy Aniketsy force-pushed the fix-timedeltaindex-shift-infer-freq branch from 84cf2bd to 5dc83c6 Compare August 12, 2025 18:07
@Aniketsy Aniketsy closed this Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant