
Ultimate access to all questions.
Which of the following code blocks correctly returns a new DataFrame with a modified storeDescription column where the prefix "Description: " has been removed from each value in the storeDescription column of DataFrame storesDF?
A sample of DataFrame storesDF is shown below:
storeId storeDescription
0 Description: ultr...
1 Description: sagi...
2 Description: port...
3 Description: tris...
4 Description: ulla...
storeId storeDescription
0 Description: ultr...
1 Description: sagi...
2 Description: port...
3 Description: tris...
4 Description: ulla...
A
storesDF.withColumn("storeDescription", regexp_replace(col("storeDescription"), "^Description: "))_
B
storesDF.withColumn("storeDescription", col("storeDescription").regexp_replace("^Description: ", ""))_
C
storesDF.withColumn("storeDescription", regexp_extract(col("storeDescription"), "^Description: ", ""))_
D
storesDF.withColumn("storeDescription", regexp_replace("storeDescription", "^Description: ", ""))_
E
storesDF.withColumn("storeDescription", regexp_replace(col("storeDescription"), "^Description: ", ""))_