Week 6 Assignment
Week 6 Assignment
1. Write PySpark code to create a new dataframe with the data given below
having 2 columns (‘season’) and (‘windspeed’).
[ Datatypes of the column names can be inferred ]
# Data
[("Spring", 12.3),
("Summer", 10.5),
("Autumn", 8.2),
("Winter", 15.1)]