title: How to convert 2D list into dataframe
body: <p>I have a python code that convert 2D list into pandas dataframe. Where the result is a dataframe with 2 records.</p>
  <p>What i expect is to make all the data in one single row where each value is in a different column.</p>
  <p>How can i make this happen ?</p>
  <pre><code>import pandas as pd
  a = [[1,2],[3,5,6]]
  print(type(a))
  
  for b in a:
      for j in b:
          print(j)
  
  dt=zip(a)
  df=pd.DataFrame(dt,columns=[&quot;d&quot;])
  print(type(df))
  print(df)
  </code></pre>
  <p>Result
  <a href="https://i.stack.imgur.com/NpQSh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NpQSh.jpg" alt="enter image description here" /></a></p>