title: How to convert a list of array to Spark dataframe
body: <p>Suppose I have a list:</p>
  
  <p><code>x = [[1,10],[2,14],[3,17]]</code></p>
  
  <p>I want to convert <code>x</code> to a Spark dataframe with two columns <code>id</code> (1,2,3) and <code>value</code> (10,14,17).</p>
  
  <p>How could I do that?</p>
  
  <p>Thanks</p>