1a
The starter holds the list data and the list columns. Make a DataFrame df from them with spark.createDataFrame, and give columns as the schema. Print df. Look at the Spark jobs panel under the cell.
Hint 1
createDataFrame takes the data first. The column names go in its schema argument.
Check your output
DataFrame[Name: string, Age: bigint, Department: string]The Spark jobs panel stays empty.
Show solutionHide solution
df = spark.createDataFrame(data, schema=columns)
print(df)