Which of the following code blocks returns a DataFrame with column storeSlogan where single quotes in column storeSlogan in DataFrame storesDF have been replaced with double quotes?
A sample of DataFrame storesDF is below:
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"), "’", "\""))
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
bp_a_user
2 weeks, 3 days agoSowwy1
3 months, 4 weeks agosionita
4 months, 1 week agojtu363
2 months, 2 weeks agojtu363
2 months, 2 weeks ago