Which of the following code blocks returns a new Data Frame from DataFrame storesDF with no duplicate rows?
Which of the following code blocks returns a new Data Frame from DataFrame storesDF with no duplicate rows?
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.
Should be E