Certified Associate Developer for Apache Spark Exam QuestionsBrowse all questions from this exam

Certified Associate Developer for Apache Spark Exam - Question 98


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

Show Answer
Correct Answer: E

To return a new DataFrame from storesDF with no duplicate rows, the correct method is storesDF.dropDuplicates(). This is the standard function in many data processing libraries like PySpark and Pandas for removing duplicate rows from a DataFrame.

Discussion

1 comment
Sign in to comment
Sowwy1Option: E
Apr 5, 2024

Should be E