Skip to content

This seems to solve the issue, although I am confused as to why there were two identical if and else statements before my commit. #52442

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

Closed
Closed
Changes from all commits
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
4 changes: 3 additions & 1 deletion pandas/core/reshape/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -2451,7 +2451,9 @@ def _convert_arrays_and_get_rizer_klass(
# expected type "Type[object]"
klass = _factorizers[lk.dtype.type] # type: ignore[index]
else:
klass = _factorizers[lk.dtype.type]
klass = libhashtable.ObjectFactorizer
lk = ensure_object(lk)
rk = ensure_object(rk)

else:
klass = libhashtable.ObjectFactorizer
Expand Down