Page 1 of 1

Which of the following code blocks returns a DataFrame containing only the rows from DataFrame storesDF where the value

Posted: Mon Mar 27, 2023 1:39 pm
by answerhappygod
Which of the following code blocks returns a DataFrame containing only the rows from DataFrame storesDF where the value in column sqft is less than or equal to 25,000?

A. storesDF.filter("sqft" <= 25000)
B. storesDF.filter(sqft > 25000)
C. storesDF.where(storesDF[sqft] > 25000)
D. storesDF.where(sqft > 25000)
E. storesDF.filter(col("sqft") <= 25000)