title: Map list from dictionaries
body: <p>I am new to python and have looked at numerous pages for this.</p>
  
  <p>I know pandas data frames have this mapping functionlity:</p>
  
  <pre><code>dictionary = {a:1, b:2, c:6}
  
  df['col_name'] = df.col_name.map(dictionary) #df is a pandas dictionary
  </code></pre>
  
  <p>How do I do something similar for lists, i.e.,</p>
  
  <pre><code>mapped_list = list_to_be_mapped.map(dictionary)
  </code></pre>
  
  <p>where in </p>
  
  <pre><code>list_to_be_mapped = [a,a,b,c,c,a]
  mapped_list       = [1,1,2,6,6,1]
  </code></pre>