title: Moving the elements in the list to its desirable column
body: <p>I created a list out from what LDA Model did:
  <em><code>lda_model.get_document_topics(bag_of_words)</code></em></p>
  
  <p>The model consist of <strong>7 topics</strong> and gave me this result using list comprehension:</p>
  
  <pre><code>[v for  v in lda_model_bigram.get_document_topics(bow_corpus_bigram)]
  </code></pre>
  
  <p>The list-to-DataFrame</p>
  
  <pre><code>df = pd.DataFrame([[(0, 0.23410834), (1, 0.010244273), (2, 0.010266962), (3, 0.31661528), (4, 0.010282155), (5, 0.010329775), (6, 0.4081532)],
   [(0, 0.24538451), (3, 0.1353473), (6, 0.58342004)],
   [(0, 0.21097288), (1, 0.2306254), (3, 0.5263941)],
   [(0, 0.020534758), (1, 0.02050926), (2, 0.020555891), (3, 0.020502212), (4, 0.57683885), (5, 0.020568976), (6, 0.3204901)],
   [(2, 0.37945262), (4, 0.12737828), (6, 0.47517183)],
  ])
  </code></pre>
  
  <p>It looked like this:
  <a href="https://i.stack.imgur.com/zzsnq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zzsnq.png" alt="Below"></a></p>
  
  <p>My question is how can I align the values based on the first element of the tuple to make it look like the one below:</p>
  
  <p><a href="https://i.stack.imgur.com/bMIl6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bMIl6.png" alt="After"></a></p>