QuestionQ182

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

Which of the following code blocks returns a new Data Frame from the DataFrame storesDF with duplicate rows removed?

Explanation

DataFrame.dropDuplicates() returns a new DataFrame with duplicate rows removed; without a subset argument, it evaluates all columns when identifying duplicates.

Learn more

Community Discussion

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