Câu 14: Databricks Certified Machine Learning Associate
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…
Nội dung câu hỏi
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?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. import pyspark.pandas as psdf = ps.DataFrame(spark_df) — đáp án hiện tại
- B. import pyspark.pandas as psdf = ps.to_pandas(spark_df)
- C. spark_df.to_sql()
- D. import pandas as pddf = pd.DataFrame(spark_df)
- E. spark_df.to_pandas()
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.