QuestionQ122
VerifiedDeveloping Apache Spark™ DataFrame/DataSet API ApplicationsThe code block below has an error. It is intended to return a new DataFrame in which the productCategories column contains only one word per row, producing a DataFrame with many more rows than storesDF. Identify the error and how to correct it.
A sample of storesDF is shown below:

storesDF.withColumn("productCategories", split(col("productCategories")))
Community Discussion