Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Pyspark Foundation for Data Engineering | Beginners
Rating: 4.3 out of 5(72 ratings)
815 students

Pyspark Foundation for Data Engineering | Beginners

Data Engineering, PySpark, Coding exercise
Last updated 1/2025
English
English [Auto],

What you'll learn

  • Fundamentals of PySpark
  • Hands on experience in PySpark
  • Understanding of data using PySpark
  • Performing various operations on DataFrame

Course content

1 section24 lectures1h 13m total length
  • Introduction2:20
  • SparkSession and Imports3:12

    Launch your PySpark foundation by creating a SparkSession, importing essential libraries, and using basic functions to read dataframes and add columns.

  • Spark DataFrame and its characteristics2:01

    Explore the spark data frame as a two-dimensional, table-like structure with columns and rows where each column holds values for a variable and each row a record.

  • Syntax and example7:10

    Learn to create a dataframe in PySpark by passing data and columns, and understand column names, data types, and schema.

  • Print operation0:44

    Explore the print operation in PySpark data engineering by observing how code output appears, how newly created data is printed, and how functional print behavior translates to visible results.

  • Understanding the data0:19

    Analyze a small five-row dataset and inspect it quickly using a language of your choice, demonstrating the simplest way to examine the data.

  • Number of records in DataFrame0:27

    Analyze the data to determine the number of records in a dataframe. Learn practical steps to count records in PySpark for data engineering beginners.

  • Columns present in DataFrame0:30

    Learn how to inspect a pyspark dataframe's structure by using the columns function to reveal all the columns in your data.

  • Summary of a DataFrame1:03

    Explore a PySpark dataframe by describing basic statistics and column details, including a district column, and demonstrate how simple data descriptions support data engineering tasks.

  • Get schema of a DataFrame0:53

    Get the schema of a DataFrame in Pyspark, and view the output in a tree format to understand fields like name, offspring, bank, and subject.

  • Create a new column in a dataframe4:53

    Learn how to work with a PySpark dataframe by creating a new column with withColumn, casting data types, and modifying existing columns to reflect updated values.

  • Arithmetic operations on columns5:27
  • Change column Data Types by casting4:19

    Learn how to cast a column's data type in PySpark, converting between integers, doubles, and strings, and inspect schema changes as you reconstitute data types.

  • Create a column with integer constant1:52

    Create and manipulate a PySpark DataFrame by adding a new column with an integer constant (for example, 300), explore arithmetic and string constant columns, and view the results.

  • Application of the learnings1:31

    Apply the learnings to compute percentages from scores in data engineering by creating a new percentage column from a total column, using the 100 division formula, illustrated with example scores.

  • Rounding operations using bround3:46

    Use bround to round numeric columns to integers or decimals, applying banker’s rounding to the nearest even number and controlling decimal places in PySpark data frames.

  • Sorting operation5:24

    Explore how to sort a pyspark data frame using ascending and descending order, compare different sort methods and the order by syntax, and understand how to apply sorting on columns.

  • Drop columns of a dataframe4:51

    Drop single or multiple columns in a dataframe to create a new dataframe excluding total score and percentage columns, using the drop operation and handling missing columns.

  • Rename a column3:24

    Discover how to rename an existing column in Pyspark by passing the current column name and the new column name to the rename function, and preview the resulting data.

  • Create a column with String constant1:14

    Create a column with constant string values to label performers as excellent, very good, good, or average in a PySpark data frame.

  • Conditional Statements4:46

    Master conditional statements in PySpark to classify student scores into categories like excellent and very good, using if and otherwise logic to create a new dataframe column.

  • Changing Case of a column1:49

    Learn how to change a column's case in PySpark using the upper and lower functions, with practical examples converting values to lowercase and uppercase.

  • Filter operations3:24

    Explore filter operations in pyspark by applying boolean conditions to dataframes, using comparisons like greater than and greater than or equal to, and filtering by strings and column values.

  • Grouping and Aggegrations8:27

    Learn grouping and aggregations in PySpark: group by grade, count students, compute mean and max, handle distinct values, and rename or create columns based on conditions.

Requirements

  • There are no pre-requisites for the course. We will learn and practice together.
  • Basic Python knowledge is a plus

Description

This course will prepare you for a real world Data Engineer role (basics)!

Learn to code PySpark like a real world developer. Here our major focus will be on Practical applications of PySpark and bridge the gap between academic knowledge and practical skill.

In this course we will get to know and apply few of the most essential and basic functions in PySpark, that are used frequently in scripting for any project based on PySpark.


About PySpark:

Learn the latest Big Data Technology - Spark! And learn to use it with one of the most popular programming languages, Python!

One of the most valuable technology skills is the ability to analyze huge data sets, and this course is specifically designed to bring you up to speed on one of the best technologies for this task, Apache Spark! The top technology companies like Google, Facebook, Netflix, Airbnb, Amazon, NASA, and more are all using Spark to solve their big data problems!

Spark can perform up to 100x faster than Hadoop MapReduce, which has caused an explosion in demand for this skill! Because the Spark 2.0 DataFrame framework is so new, you now have the ability to quickly become one of the most knowledgeable people in the job market!


What you will learn :

  • SparkSession and imports

  • Spark DataFrame and its characteristics

  • Syntax and example

  • Print results

  • Understanding the data

  • Number of records

  • Columns in dataFrame

  • Describe a DataFrame

  • Schema of a DataFrame

  • Create a new column

  • Arithmetic operations on Data

  • Change column data type

  • Create a column with integer as constant

  • Apply what we know

  • Rounding of digits

  • Sorting operation

  • Drop columns

  • Rename columns

  • Create a column with string as constant

  • Conditional Statements

  • Changing case of a column

  • Filter operations

  • Grouping and aggregations


Prerequisites :

  • Some basic programming skills (Not Mandatory)

  • Will to implement theoretical knowledge in practical.


Who this course is for:

  • Beginners who want to learn Big Data or experienced people who want to transition to a Big Data role

  • Big data beginners who want to learn how to code in the real world

  • Aspiring candidates for data engineering role

Who this course is for:

  • Anyone with interest in Data engineering