Skip to content

Instantly share code, notes, and snippets.

@ajayborra
Created November 5, 2018 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajayborra/7f72750629a872fba0144172ecc3d5b9 to your computer and use it in GitHub Desktop.
Save ajayborra/7f72750629a872fba0144172ecc3d5b9 to your computer and use it in GitHub Desktop.
readDataset
//read the data as data frame
val df = spark.read.format("csv").option("header", "true")
.load("/path/to/file.csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment