title: Add column in dataframe from list
body: <p>I have a dataframe with some columns like this:</p>
  
  <pre><code>A   B   C  
  0   
  4
  5
  6
  7
  7
  6
  5
  </code></pre>
  
  <p>The <em>possible range of values in A are only from 0 to 7</em>. </p>
  
  <p>Also, I have a list of 8 elements like this:</p>
  
  <pre><code>List=[2,5,6,8,12,16,26,32]  //There are only 8 elements in this list
  </code></pre>
  
  <p>If the element in column A is <em>n</em>, I need to insert the <em>n</em> th element from the List in a new column, say 'D'.</p>
  
  <p>How can I do this in one go without looping over the whole dataframe? </p>
  
  <p>The resulting dataframe would look like this:</p>
  
  <pre><code>A   B   C   D
  0           2
  4           12
  5           16
  6           26
  7           32
  7           32
  6           26
  5           16
  </code></pre>
  
  <p>Note: The dataframe is huge and iteration is the last option option. But I can also arrange the elements in 'List' in any other data structure like dict if necessary.</p>