QuestionQ144

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

Which of the following sets of DataFrame methods both return a new DataFrame containing only rows that satisfy a specified logical condition?

Explanation

DataFrame.filter() filters rows by a Boolean condition and returns a new DataFrame. DataFrame.where() is an alias for filter(), so it returns the same type of filtered result.

Learn more

Community Discussion

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