One to many mapping with a ChainMap Dictionary
One to many mapping with a ChainMap Dictionary Question: I would like do a one to many mapping with the following list and mapping dictonary: l1 = [‘a’, ‘b’, ‘c’] l2 = [‘a’, ‘c’, ‘d’] l3 = [‘d’, ‘e’, ‘f’] mapping_dict = ChainMap( dict.fromkeys(l1, ‘A’), dict.fromkeys(l2, ‘B’), dict.fromkeys(l3, ‘C’)) This is my dataframe: df = …