I have a dataframe which consists of 2 columns Error and Comments
My Error column would contain a list of strings in each cell. I need help in writing code for searching through the dataframe and find the comments of that row where my Dataframe Error content matches with user input val1.

i have tried the given code but it gives the error length does not match

```
df.loc[df['Error'].values == val1, 'Comments']

```

where df is my dataframe with columns 'Error' and 'Comments'

df

```
Error                       Comments
['My data1','My data2']    'Resolution1'
['My data1','My data3']    'Resolution2'

```

Assume `val1 = ['My data1','My data2']`

My result is to find Resolution1 as output by searching the df by val1