title: Converting a list of rows to a PySpark dataframe
body: <p>I have the following lists of rows that I want to convert to a PySpark df:</p>
  <pre><code>data= [Row(id=u'1', probability=0.0, thresh=10, prob_opt=0.45),
   Row(id=u'2', probability=0.4444444444444444, thresh=60, prob_opt=0.45),
   Row(id=u'3', probability=0.0, thresh=10, prob_opt=0.45),
   Row(id=u'80000000808', probability=0.0, thresh=100, prob_opt=0.45)]
  </code></pre>
  <p>I need to convert it to a PySpark DF.</p>
  <p>I have tried doing <code>data.toDF()</code>:</p>
  <blockquote>
  <p>AttributeError: 'list' object has no attribute 'toDF'</p>
  </blockquote>