title: Converting Column1 value as header and column2 as its value in pandas
body: <p>I am Trying to convert the Column 1 as Header name of the data frame and Column 2 value as its respective values:</p>
  
  <p>Eg :</p>
  
  <pre><code>import pandas as pd
  df = pd.DataFrame([(10,'foo'), (20,'bar')])
  </code></pre>
  
  <p>Resulted data frame will have :</p>
  
  <pre><code>   0    1
  0  10  foo
  1  20  bar
  </code></pre>
  
  <p>Expected data frame :</p>
  
  <pre><code> foo bar
  0 10 20
  </code></pre>
  
  <p>I am new to Python and looking the help in this regard.
  Thanks</p>