Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

Exam Databricks-Machine-Learning-Associate All Questions
Exam Databricks-Machine-Learning-Associate All Questions

View all questions & answers for the Databricks-Machine-Learning-Associate exam

Databricks ML Data Scientist Databricks-Machine-Learning-Associate Question # 2 Topic 1 Discussion

Databricks-Machine-Learning-Associate Exam Topic 1 Question 2 Discussion:
Question #: 2
Topic #: 1

A data scientist has a Spark DataFrame spark_df. They want to create a new Spark DataFrame that contains only the rows from spark_df where the value in column price is greater than 0.

Which of the following code blocks will accomplish this task?


A.

spark_df[spark_df["price"] > 0]


B.

spark_df.filter(col("price") > 0)


C.

SELECT * FROM spark_df WHERE price > 0


D.

spark_df.loc[spark_df["price"] > 0,:]


E.

spark_df.loc[:,spark_df["price"] > 0]


Get Premium Databricks-Machine-Learning-Associate Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.