Quantcast
Channel: Conversion of RDD to Dataframe - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article


Conversion 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

Browsing latest articles
Browse All 2 View Live


Latest Images