
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"), "’", """))_