Which of the following code blocks returns a new DataFrame from DataFrame storesDF where column modality is the constant string "PHYSICAL"? Assume DataFrame storesDF is the only defined language variable.
A.
storesDF.withColumn("modality", lit(PHYSICAL))
B.
storesDF.withColumn("modality", col("PHYSICAL"))
C.
storesDF.withColumn("modality", lit("PHYSICAL"))
D.
storesDF.withColumn("modality", StringType("PHYSICAL"))
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, 3 weeks ago