CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 41: DP-600: Implementing Analytics Solutions Using Microsoft Fabric

You are analyzing customer purchases in a Fabric notebook by using PySpark. You have the following DataFrames:transactions: Contains five columns named transaction_id, customer_id, product_id, amount, and date and has 10 million rows, with each row representing a transaction. customers: Contains customer details in 1,…

Nội dung câu hỏi

You are analyzing customer purchases in a Fabric notebook by using PySpark. You have the following DataFrames:transactions: Contains five columns named transaction_id, customer_id, product_id, amount, and date and has 10 million rows, with each row representing a transaction. customers: Contains customer details in 1,000 rows and three columns named customer_id, name, and country. You need to join the DataFrames on the customer_id column. The solution must minimize data shuffling. You write the following code.from pyspark.sql import functions as Fresults =Which code should you run to populate the results DataFrame?

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.

  1. A. transactions.join(F.broadcast(customers), transactions.customer_id == customers.customer_id) — đáp án hiện tại
  2. B. transactions.join(customers, transactions.customer_id == customers.customer_id).distinct()
  3. C. transactions.join(customers, transactions.customer_id == customers.customer_id)
  4. D. transactions.crossJoin(customers).where(transactions.customer_id == customers.customer_id)

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề