Skip to main content
PYSPARK ACADEMY โ€ข MODULE 06

Column Transformations

Add new computed columns, inject constant literals, apply when/otherwise conditional branches, and overwrite existing schema columns.

Intermediate๐Ÿ“š 8 Lessonsโญ 0 / 2330 XPโณ In Progress
0 / 8 Lessons Completed (0%)
CHALLENGE CURRICULUM

Module Lessons

0 / 8 Complete
LESSON 41

๐Ÿ”“ Adding Columns with withColumn()

โฑ 2 Mins โ€ข โญ 250 XP โ€ข Intermediate

LESSON 42

๐Ÿ”’ Injecting Constant Literals with lit()

โฑ 2 Mins โ€ข โญ 260 XP โ€ข Intermediate

LESSON 43

๐Ÿ”’ Arithmetic Column Subtraction

โฑ 2 Mins โ€ข โญ 270 XP โ€ข Intermediate

LESSON 44

๐Ÿ”’ Conditional Logic with when()

โฑ 2 Mins โ€ข โญ 280 XP โ€ข Intermediate

LESSON 45

๐Ÿ”’ Fallback Default Values with otherwise()

โฑ 2 Mins โ€ข โญ 290 XP โ€ข Intermediate

LESSON 46

๐Ÿ”’ Chained Multi-Branch Conditional Classification

โฑ 2 Mins โ€ข โญ 310 XP โ€ข Intermediate

LESSON 47

๐Ÿ”’ Overwriting Existing Columns with Transformations

โฑ 2 Mins โ€ข โญ 320 XP โ€ข Intermediate

LESSON 48

๐Ÿ”’ Multi-Column Pipeline Transformations

โฑ 3 Mins โ€ข โญ 350 XP โ€ข Intermediate