Skip to content

different behaviour of df.isin() in 1.0.5/1.1.0, when df contains None #35565

Open
@johny-b

Description

@johny-b
>>> import pandas as pd
>>> x = pd.DataFrame([['foo', 'bar'], [1, None]])
>>> y = x[1].copy()

# PANDAS 1.0.5
>>> x.isin(y)
       0     1
0  False  True
1  False  True

# PANDAS 1.1.0
>>> x.isin(y)
       0      1
0  False   True
1  False  False

Is this change intended?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolateRegressionFunctionality that used to work in a prior pandas versionisinisin method

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions