Learn about some basic Scala data types and expressions.
- [Instructor] Here is a list of basic Scala data types.…These are scalar data types…which means that they store a single value.…We'll discuss arrays, lists,…and other non-scalar data types in an upcoming lesson.…If you've used other programming languages,…this list of data types probably looks familiar.…Byte, as the name implies,…is used to store an 8-bit value.…Short, int, long, float, and double…are numeric data types.…Char is used to store a single character.…Let's take a look at how…to work with these data types in Scala.…
If you followed along…with the previous lesson on installing the Scala IDE,…you will have installed a Scala command line tool known…as a REPL, which is short for Read Eval Print Loop.…Let's switch to the terminal window.…I'll enter the Scala command to start the REPL.…Then I'll print a welcome message…and display the Scala prompt.…First thing I want to do is to find a variable.…Now we define variables with the var keyword…followed by a variable name.…
In this case I'll use a and I'll indicate…
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.