October 2015
Beginner to intermediate
254 pages
5h 31m
English
In this recipe, we'll look at how to create a new DataFrame from a delimiter-separated values file.
The code for this recipe can be found at https://github.com/arunma/ScalaDataAnalysisCookbook/blob/master/chapter1-spark-csv/src/main/scala/com/packt/scaladata/spark/csv/DataFrameCSV.scala.
This recipe involves four steps:
spark-csv support to our project.SQLContext from the Spark context.SQLContext.Read now
Unlock full access