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)
Which of the following code blocks returns a DataFrame containing only the rows from DataFrame storesDF where the value
-
- Site Admin
- Posts: 899589
- Joined: Mon Aug 02, 2021 8:13 am