-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REGR: preserve freq in DTI/TDI outer join #32166
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
Conversation
@@ -367,6 +367,19 @@ def test_join_nonunique(self): | |||
rs = idx1.join(idx2, how="outer") | |||
assert rs.is_monotonic | |||
|
|||
@pytest.mark.parametrize("tz", [None, "US/Pacific"]) |
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.
Could we use the tz_aware_fixture
here?
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.
sure
i marked for 1.1, but is this a regression? |
rebase as well |
The behavior changed between 0.25.3 and 1.0, but it isnt obvious whether to call it a regression or not because it didnt obviously break anything. (see #32157) |
ok it was marked originally as a regression so up to u |
removed REGR tag |
hmm i think this needs a whatsnew note (to document that this is changing), otherwise lgtm. |
doc/source/whatsnew/v1.1.0.rst
Outdated
@@ -57,6 +57,7 @@ Other API changes | |||
will now be ``min`` and ``max`` to match with numeric dtypes in :meth:`DataFrame.describe` (:issue:`30164`) | |||
- :meth:`Groupby.groups` now returns an abbreviated representation when called on large dataframes (:issue:`1135`) | |||
- ``loc`` lookups with an object-dtype :class:`Index` and an integer key will now raise ``KeyError`` instead of ``TypeError`` when key is missing (:issue:`31905`) | |||
- Joining on :class:`DatetimeIndex` or :class:`TimedeltaIndex` will preserve ``freq`` in simple cases (:issue:`32166`) |
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 guess need to backport, can you move to 1.02
thanks @jbrockmendel |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon! If these instruction are inaccurate, feel free to suggest an improvement. |
@jbrockmendel as expected this needs a manual backport :-< |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
also just a nice cleanup, hoping to get this into ExtensionIndex before long