Skip to content

Conversation

Chenghaoxiang
Copy link

@Chenghaoxiang Chenghaoxiang commented Aug 29, 2025

@Chenghaoxiang Chenghaoxiang force-pushed the new-feature branch 2 times, most recently from eec1039 to 2e1bf0c Compare August 29, 2025 15:50
elif (
lib.is_np_dtype(self.dtype, "M")
and isinstance(other, Timestamp)
and cast("DatetimeArray", self).tz == other.tz
Copy link
Member

Choose a reason for hiding this comment

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

Tz check should be unnecessary; this should only work for Day freqs.

Copy link
Author

Choose a reason for hiding this comment

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

ok, on it.

@jbrockmendel
Copy link
Member

Can you add a test for the fix

@Chenghaoxiang
Copy link
Author

Certainly. I've added a test case and updated the PR. Please let me know if anything else is needed.

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.

BUG: In main, TimedeltaIndex.shift() requires freq in the index, but it may not be available because it was computed
2 participants