title: Use pandas dataframe column values to pivot other columns
body: <p>I have the following <code>dataframe</code> which I want to reshape:</p>
  
  <pre><code>  dir  hour  board_sign  pass
     1    5      d          294
     1    5      u          342
     1    6      d          1368
     1    6      u          1268
     1    7      d          3880
     1    7      u          3817
  </code></pre>
  
  <p>What I want to do is to use the values from "board_sign" as new columns which will include the values from "pass" column so that the <code>dataframe</code> will look as this:</p>
  
  <pre><code>  dir   hour     d     u
    1      5     294    342
    1      6     1368   1268
    1      7     3880   3817
  </code></pre>
  
  <p>I already tried several functions as melt pivot stack and unstack but it seems non of them give the wanted result, I also tried the pivot_table but it make is difficult to iterate since the multi index.</p>
  
  <p>It's seems like an easy operation but I just cant get it right.
  Is there any other function I can use for this?</p>
  
  <p>Thanks. </p>