I'm trying the following
df = pd.DataFrame({'col1': [1,2,3], 'col2': [[1,2], [3,4], [3,2]]})
df
col1 col2
0 1 [1, 2]
1 2 [3, 4]
2 3 [3, 2]
and I would like to select rows where col1 value is in col2 list
df[df.col1.isin(df.col2)]
Empty DataFrame
Columns: [col1, col2]
Index: []
But I get the empty df. Why does the isin function doesn't work?