Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
Which code snippet correctly filters a DataFrame named fixed_price_df in Databricks to only include rows where the price column value is greater than 0?
fixed_price_df
price
A
fixed_price_df.contains(col("price") > 0)
B
fixed_price_df.filter(col("price") > 0)
C
fixed_price_df.where("price" > 0)
D
fixed_price_df.filter("price" > 0)
E
None of the above