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 # 4 Topic 1 Discussion

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

A data scientist has been given an incomplete notebook from the data engineering team. The notebook uses a Spark DataFrame spark_df on which the data scientist needs to perform further feature engineering. Unfortunately, the data scientist has not yet learned the PySpark DataFrame API.

Which of the following blocks of code can the data scientist run to be able to use the pandas API on Spark?


A.

import pyspark.pandas as ps

df = ps.DataFrame(spark_df)


B.

import pyspark.pandas as ps

df = ps.to_pandas(spark_df)


C.

spark_df.to_sql()


D.

import pandas as pd

df = pd.DataFrame(spark_df)


E.

spark_df.to_pandas()


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.