QuestionQ271
VerifiedDeveloping Apache Spark™ DataFrame/DataSet API ApplicationsThe code block below contains an error. It is intended to create a single-column DataFrame from the Scala List years, which consists of integers. Identify the error.
spark.createDataset(years)
Community Discussion