I know pandas data frames have this mapping functionlity: dictionary = {a:1, b:2, c:6} df['col_name'] = df.col_name.map(dictionary) #df is a pandas dictionary How do I do something similar for lists, i.e., mapped_list = list_to_be_mapped.map(dictionary) where in list_to_be_mapped = [a,a,b,c,c,a] mapped_list = [1,1,2,6,6,1] Continue reading...