Transform the data
Hooray, now you're finally ready to pass your data through the Pipeline you created!
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Foundations of PySpark
คำแนะนำการฝึกหัด
- Create the DataFrame
piped_databy calling thePipelinemethods.fit()and.transform()in a chain. Both of these methods takemodel_dataas their only argument.
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Fit and transform the data
piped_data = flights_pipe.____.____