Learn how to use JSON files in data science tasks.
- [Narrator] In this session I'd like to show how easy it is…to work with JSON files when we're working with Spark.…Now I've started my Spark RPL.…Now if you've viewed previous lessons,…you're probably familiar with the idea…of creating a Spark session, so I'm simply going to import…org.apache.spark.sql.SparkSession…and I'm going to create a context variable called Spark…and I'm going to make a Spark session.…
I'm going to call the builder…and I'll give this an app name.…And we're going to call this "DataFrameExercise"…and I'm going to simply ask Spark…to get or create this Spark session.…Great, so now I have a Spark session…that I can work with to load my JSON file.…So I'm going to clear the screen…and I'm going to load up a JSON file.…And let me just flip over to a text editor…to show you what that looks like.…
This is the same data that we've worked with…in the department division table.…Instead of using a comma-separated file,…I formatted this as a JSON file.…So let's load that into Spark.…The way we'll do this…
Dan also focuses on using Scala with Spark, a distributed processing platform. He first describes how to work with Resilient Distributed Datasets (RDDs)—a fundamental Spark data structure—and then explains how to use Scala with Spark DataFrames, a new class of data structure specially designed for analytic processing. He wraps up the course by providing a summary of advantages of using Scala for data science.
- The advantages of Scala for data science
- Scala data types
- Scala arrays, vectors, and ranges
- Parallel processing in Scala
- Mapping functions over parallel collections
- When and when not to use parallel collections
- Using SQL in Scala
- Scala and Spark RDDs
- Scala and Spark DataFrames
- Creating DataFrames
Skill Level Intermediate
Java for Data Scientists Essential Trainingwith Charles Kelly2h 43m Intermediate
1. Introduction to Scala
2. Parallel Processing in Scala
3. Using SQL in Scala
4. Scala and Spark RDDs
5. Scala and Spark DataFrames
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.