df=
id - val1
1 - 50
2 - 40
1 - 60
2 - 41
a = [50]
output = id - val1
1 - 50
1 - 60
Suppose i have a panda dataframe like df and a array like 'a'. Now if any of the value of val1 column of df column match with this array i want to return all the entry of unique id (like output). How can i do this?