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.
Thameur01
2 months agobp_a_user
3 months, 2 weeks agoSowwy1
6 months, 3 weeks agosionita
7 months agojtu363
5 months, 1 week agojtu363
5 months, 1 week ago