PYSPARK ACADEMY • MODULE 06Column 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%) 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