
Ultimate access to all questions.
Which of the following code blocks returns a DataFrame with a column storeSlogan where all single quotes in the storeSlogan column of DataFrame storesDF have been replaced with double quotes?
A sample of DataFrame storesDF is shown below:
storeId storeSlogan
0 'consequat vitae ...
1 'aliquam at pelle...
2 'non ac leo phare...
3 'eget purus vel sed"
4 'vitae phasellus ...
...
...
storeId storeSlogan
0 'consequat vitae ...
1 'aliquam at pelle...
2 'non ac leo phare...
3 'eget purus vel sed"
4 'vitae phasellus ...
...
...
A
storesDF.withColumn("storeSlogan", col("storeSlogan").regexp_replace("’" """))
B
storesDF.withColumn("storeSlogan", regexp_replace(col("storeSlogan"), "’"))
C
storesDF.withColumn("storeSlogan", regexp_replace(col("storeSlogan"), "’", """))
D
storesDF.withColumn("storeSlogan", regexp_replace("storeSlogan", "’", """))
E
storesDF.withColumn("storeSlogan", regexp_extract(col("storeSlogan"), "’", """))