I have the following pandas dataframes and I want to join the list column, look up and get the values.
df1
x_id y_id
1 [101,102,103]
2 [102, 103]
3 [103]
df2
y_id y_name
101 abc
102 xyz
103 def
I want a dataframe df3 as:
df3
x_id y_id y_names
1 [101,102,103] [abc, xyz, def]
2 [102, 103] [xyz, def]
3 [103] [def]
Tried using lookup and apply functions but couldn't achieve.