Skip to content

BUG: IntervalIndex.get_indexer incorrectly matching ints to datetimes #54964

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

Merged
merged 7 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
GH ref
  • Loading branch information
jbrockmendel committed Sep 2, 2023
commit ea0f52494527ef28cc87bba803ecd08fa197ea8e
1 change: 1 addition & 0 deletions doc/source/whatsnew/v2.2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ Styler

Other
^^^^^
- Bug in :func:`cut` incorrectly allowing cutting of timezone-aware datetimes with timezone-naive bins (:issue:`54964`)

.. ***DO NOT USE THIS SECTION***

Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/reshape/test_cut.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def test_datetime_cut(data):

@pytest.mark.parametrize("box", [list, np.array, Index, Series])
def test_datetime_tz_cut_mismatched_tzawareness(box):
# GH#47772
# GH#54964
bins = box(
[
Timestamp("2013-01-01 04:57:07.200000"),
Expand Down