-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
Needs TestsUnit test(s) needed to prevent regressionsUnit test(s) needed to prevent regressionsgood first issue
Milestone

Description
The "in" function does not work as expected in regard to a data frame. Let's say we have the following data frame :
df = pd.DataFrame(np.random.randn(6,4), columns=list('ABCD'))
We can test this data frame :
df is None
False
However we cannot test its presence in a list :
df in [None]
TypeError: Could not compare [None] with block values
We would expect to get just False in this case.
(Pandas version 0.17.1)
Metadata
Metadata
Assignees
Labels
Needs TestsUnit test(s) needed to prevent regressionsUnit test(s) needed to prevent regressionsgood first issue