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