title: How can I transform a list of tuples into a pandas dataframe so that the first value of each tuple represents a column?
body: <p>I would like to transform my list of tuples so that the first element of each tuple represents 2 different columns. The second element of each tuple should represent the values that correspond to the columns in the pandas df.  </p>
  
  <p>My current list of tuples: </p>
  
  <hr>
  
  <pre><code>list_tuples = [('G', 9.8), ('B', 4.2), ('G', 9.6), ('B', 2.3), ('G',7.6), ('B', 3.1)]
  </code></pre>
  
  <hr>
  
  <p>Desired output: </p>
  
  <hr>
  
  <pre><code>            G        B   
             9.8      4.2      
             9.6      2.3      
             7.6      3.1      
  </code></pre>
  
  <hr>
  
  <p>The code I currently have which does not give desired output: </p>
  
  <hr>
  
  <pre><code>df = pd.DataFrame(list_tuples, columns=['G', 'B'])
  </code></pre>
  
  <hr>