Skip to content

Commit c631722

Browse files
authored
Update III. Getting started with machine learning pipelines.py
1 parent 7c2c373 commit c631722

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Introduction to PySpark/III. Getting started with machine learning pipelines.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,11 @@
5050
model_data = model_data.withColumn("plane_year", model_data.plane_year.cast('integer'))
5151
#|
5252
#|
53+
### Create a new column
54+
# Create the column plane_age
55+
# Create the column plane_age
56+
model_data = model_data.withColumn(
57+
"plane_age", model_data.year - model_data.plane_year)
58+
#|
59+
#|
60+
###

0 commit comments

Comments
 (0)