For a data frame df, it has a column col contains list value:
df
col
list
id col 1 [1, 10, 23] 2 [2, 11, 19, 29] ..
try read the "apply" function in pandas document.
df['has_element'] = df['col'].apply(lambda x: element in x)