QuestionQ69
VerifiedDeveloping Apache Spark™ DataFrame/DataSet API ApplicationsThe code block below has an error. It is intended to create a single-column DataFrame from the Python list years, which consists of integers. Identify the error.
Code block:
spark.createDataFrame(years, IntegerType)
Community Discussion