I have a data frame like this,
df col1 col2 A [x,y] B [z] C [p,q,x,y] D [q,z,t]
And I have a dictionary like this,