QuestionQ188

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

Which of the following operations can rename and replace an existing column in a DataFrame?

Explanation

DataFrame.withColumnRenamed(existing, new) returns a new DataFrame in which the specified existing column has been assigned the new name.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!