A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/48905 below:

regression in MultiIndex.isin when index contains NA · Issue #48905 · pandas-dev/pandas · GitHub

Pandas version checks Reproducible Example
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 Versions

Replace 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