Skip to content

PERF: avoid unnecessary reordering in MultiIndex._reorder_indexer #48384

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 10 commits into from
Sep 14, 2022
Prev Previous commit
fix test
  • Loading branch information
lukemanley committed Sep 14, 2022
commit c2f0625ff8e3067ae35bae6f7a7d68a8acf493a0
2 changes: 1 addition & 1 deletion pandas/tests/indexes/multi/test_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,5 +922,5 @@ def test_get_locs_reordering(keys, expected):
]
)
result = idx.get_locs(keys)
expected = np.array(expected)
expected = np.array(expected, dtype=np.intp)
tm.assert_numpy_array_equal(result, expected)