QuestionQ227

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

Which of the following code blocks returns a DataFrame in which every row is unique?

Explanation

Spark DataFrame distinct() returns a new DataFrame containing the distinct rows from the original DataFrame, thereby removing duplicate rows. Apache Spark: pyspark.sql.DataFrame.distinct

Learn more

Community Discussion

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