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.
Sowwy1
7 months, 2 weeks agosionita
8 months agojtu363
6 months, 1 week agojtu363
6 months, 1 week ago