O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

From 0 to 1 : Spark for Data Science with Python

Video Description

Get your data to fly using Spark for analytics, machine learning and data science​

About This Video

  • Music Recommendations using Alternating Least Squares and the Audioscrobbler dataset
  • Dataframes and Spark SQL to work with Twitter data
  • Using the PageRank algorithm with Google web graph dataset
  • Using Spark Streaming for stream processing
  • Working with graph data using the Marvel Social network dataset

In Detail

Get your data to fly using Spark for analytics, machine learning and data science Let’s parse that. What's Spark? If you are an analyst or a data scientist, you're used to having multiple systems for working with data. SQL, Python, R, Java, etc. With Spark, you have a single engine where you can explore and play with large amounts of data, run machine learning algorithms and then use the same system to productionize your code.Analytics: Using Spark and Python you can analyze and explore your data in an interactive environment with fast feedback. The course will show how to leverage the power of RDDs and Dataframes to manipulate data with ease. Machine Learning and Data Science : Spark's core functionality and built-in libraries make it easy to implement complex algorithms like Recommendations with very few lines of code. We'll cover a variety of datasets and algorithms including PageRank, MapReduce and Graph datasets.

Table of Contents

  1. Chapter 1 : You, This Course and Us
    1. You, This Course and Us 00:02:16
  2. Chapter 2 : Introduction to Spark
    1. What does Donald Rumsfeld have to do with data analysis? 00:08:45
    2. Why is Spark so cool? 00:12:22
    3. An introduction to RDDs - Resilient Distributed Datasets 00:09:39
    4. Built-in libraries for Spark 00:15:37
    5. Installing Spark 00:06:43
    6. The PySpark Shell 00:04:50
    7. Transformations and Actions 00:13:32
    8. See it in Action: Munging Airlines Data with PySpark – I 00:10:13
    9. [For Linux/Mac OS Shell Newbies] Path and other Environment Variables 00:08:26
  3. Chapter 3 : Resilient Distributed Datasets
    1. RDD Characteristics: Partitions and Immutability 00:12:35
    2. RDD Characteristics: Lineage, RDDs know where they came from 00:06:05
    3. What can you do with RDDs? 00:11:08
    4. Create your first RDD from a file 00:16:10
    5. Average distance travelled by a flight using map() and reduce() operations 00:05:50
    6. Get delayed flights using filter(), cache data using persist() 00:05:23
    7. Average flight delay in one-step using aggregate() 00:15:10
    8. Frequency histogram of delays using countByValue() 00:03:25
    9. See it in Action: Analyzing Airlines Data with PySpark – II 00:06:25
  4. Chapter 4 : Advanced RDDs: Pair Resilient Distributed Datasets
    1. Special Transformations and Actions 00:14:44
    2. Average delay per airport, use reduceByKey(), mapValues() and join() 00:18:10
    3. Average delay per airport in one step using combineByKey() 00:11:52
    4. Get the top airports by delay using sortBy() 00:04:33
    5. Lookup airport descriptions using lookup(), collectAsMap(), broadcast() 00:14:02
    6. See it in Action: Analyzing Airlines Data with PySpark – III 00:04:58
  5. Chapter 5 : Advanced Spark: Accumulators, Spark Submit, MapReduce, Behind The Scenes
    1. Get information from individual processing nodes using accumulators 00:13:35
    2. See it in Action: Using an Accumulator variable 00:02:41
    3. Long running programs using spark-submit 00:05:59
    4. See it in Action: Running a Python script with Spark-Submit 00:03:58
    5. Behind the scenes: What happens when a Spark script runs? 00:14:30
    6. Running MapReduce operations 00:13:44
    7. See it in Action: MapReduce with Spark 00:02:05
  6. Chapter 6 : Java and Spark
    1. The Java API and Function objects 00:15:59
    2. Pair RDDs in Java 00:04:49
    3. Running Java code 00:03:49
    4. Installing Maven 00:02:21
    5. See it in Action: Running a Spark Job with Java 00:05:09
  7. Chapter 7 : PageRank: Ranking Search Results
    1. What is PageRank? 00:16:44
    2. The PageRank algorithm 00:06:15
    3. Implement PageRank in Spark 00:12:01
    4. Join optimization in PageRank using Custom Partitioning 00:07:27
    5. See it Action: The PageRank algorithm using Spark 00:03:46
  8. Chapter 8 : Spark SQL
    1. Dataframes: RDDs + Tables 00:16:05
    2. See it in Action: Dataframes and Spark SQL 00:04:50
  9. Chapter 9 : MLlib in Spark: Build a recommendations engine
    1. Collaborative filtering algorithms 00:12:20
    2. Latent Factor Analysis with the Alternating Least Squares method 00:11:40
    3. Music recommendations using the Audioscrobbler dataset 00:07:51
    4. Implement code in Spark using MLlib 00:16:06
  10. Chapter 10 : Spark Streaming
    1. Introduction to streaming 00:09:55
    2. mplement stream processing in Spark using Dstreams 00:10:55
    3. Stateful transformations using sliding windows 00:09:26
    4. See it in Action: Spark Streaming 00:04:17
  11. Chapter 11 : Graph Libraries
    1. The Marvel social network using Graphs 00:18:01