Here is the DF,
df = pd.DataFrame({'List': ['[7%, 9%, 30%]', '[9%, 30%]', '[7%]'], 'Value' : ['7%', '0%', '7%']})
List Value
[7%, 9%, 30%] 7%
[9%, 30%] 0%
[7%] 7%
How can I create a new column to check if value is in list column the expected output
List Value CTRL
[7%, 9%, 30%] 7% True
[9%, 30%] 0% False
[7%] 7% True
Things tried without success..
df['CTRL'] = np.where([item for item in df['List']] == df['Value'], True, False)