I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
import pandas as pd mi1 = pd.MultiIndex.from_tuples([(1, pd.NA)]) mi2 = pd.MultiIndex.from_tuples([(1, 1), (1, 2)]) mi2.isin(mi1)Issue Description
output:
array([True, True]) # <- main
array([False, False]) # <- 1.5.0
Regression is on main only and looks to be a result of #48622.
The bug is not in MultiIndex.isin
per se, but #48622 looks to have exposed the underlying bug to MultiIndex.isin
.
Open PR #48877 will fix the underlying bug.
Expected Behavior Installed VersionsReplace this line with the output of pd.show_versions()
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4