Learn about basic arithmetic and relational expressions.
- [Instructor] Lets talk about scala functions.…I've started the Scala REPL here.…Now scala functions are expressions…that can be called with parameters to compute a value.…If you've worked with other programming languages…that use functions, you've probably worked with a syntax…that allows you to define a function, give it a name,…and optionally pass in some parameters.…We can do this in Scala as well.…Let's look at the structure.…We use the def keyword to define a function.…Give it a name like myFunction,…and tell it what parameters we want to pass in,…like the variable a, which is a type integer,…and b, which is also a type integer.…
Then I want to indicate that this function…is going to return a particular value.…In this case, it'll return an integer.…And I want to compute a new value…within this function called c,…and c is going to be the value a times b.…Then I simply want to return a value of c.…Then I will close off my definition…and now I have my function.…Now once we've defined a function,…we can call it using the function name…
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.