title: Pandas - Create Column Name Based on the values in a Column
body: <p>I want to create the column names based on the values in a column</p>
  
  <p>This is what I have:</p>
  
  <pre><code>part_number source  recent_date  recent_price
      0023496     a1  2017-06-27    55.0
      0023496     e1  2017-08-03    315.0
      0023084     a1  2017-01-12    255.0
      0023084     e1    NaN           NaN
  </code></pre>
  
  <p>This is the output that I want:</p>
  
  <pre><code>part_number a1_recent_date   a1_recent_price   e1_recent_date e1_recent_price
  
  0023496     2017-06-27       55.0               2017-08-03        315.0
  0023084     2017-01-12      255.0                  NaN             NaN
  </code></pre>