
Ultimate access to all questions.
A data scientist is working with a Spark DataFrame named 'spark_df'. They want to create a new Spark DataFrame that includes only the rows from 'spark_df' where the 'discount' column's value is less than 0. Which of the following code segments correctly accomplishes this task?
A
spark_df.loc[spark_df('discount') < 0]
B
SELECT * FROM spark_df WHERE discount < 0*_
C
spark_df.filter(col('discount') < 0)_
D
spark_df.find(spark_df('discount') < 0)
E
spark_df.loc[spark_df('discount') < 0,:]