-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Backport PR #32166 on branch 1.0.x #32269
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
Backport PR #32166 on branch 1.0.x #32269
Conversation
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 @jbrockmendel. Should the backport mirror the original PR more closely?
assert cols.dtype == joined.dtype | ||
tm.assert_index_equal(cols, joined) | ||
|
||
def test_join_preserves_freq(self): |
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.
only this test should be backported
aware.join(naive) | ||
|
||
@pytest.mark.parametrize("tz", [None, "US/Pacific"]) | ||
def test_join_preserves_freq(self, tz): |
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.
only this test should be backported
return self._simple_new(joined, name, **kwargs) | ||
|
||
freq = self.freq if self._can_fast_union(other) else None | ||
new_data = type(self._data)._simple_new( # type: ignore |
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.
can you add a comment why the type:ignore has been added.
this is fine, has some extra tests which are nbd. |
#32166