I have a Dataframe 'DF' with 200 columns and around 500 million records. I have another list of values as 'l'. I want to check, for each of the values in the list l, each of the value is present in which column in my Dataframe DF.
For example,
l = [101,102,103,104,105]
DF =
col1,col2,col3
1,2,101
2,3,102
3,103,4
4,104,5
105,5,6
6,105,7
My output should be as below:
101,col3
102,col3
103,col2
104,col2
105,col1
105,col2