↧
Answer by eliasah for Conversion of RDD to Dataframe
When you want to convert an RDD to a DataFrame, you'll need to create an SQLContext and import it's implicit functions like @zero323 suggested. import sqlContext.implicits._rows.toDFIn case your RDD is...
View ArticleConversion of RDD to Dataframe
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...
View Article