title: Conversion of RDD to Dataframe
body: <p>I read a csv file to RDD and trying to convert it to DataFrame. But, it throughs error.</p>
  
  <pre><code>scala&gt; rows.toDF()
  &lt;console&gt;:34: error: value toDF is not a member of org.apache.spark.rdd.RDD[Array[String]]
                rows.toDF()
  
  scala&gt; rows.take(2)       
      Array[Array[String]] = Array(Array(1, 0, 3, "Braund, ...            
  </code></pre>
  
  <p>What am I doing wrong?</p>