Câu 67: Databricks Certified Associate Developer for Apache Spark
The code block shown below should return a new DataFrame with the mean of column sqft from DataFrame storesDF in column sqftMean. Choose the response that correctly fills in the numbered blanks within the code block to complete this task. Code block:storesDF.__1__(__2__(__3__).alias("sqftMean"))
Nội dung câu hỏi
The code block shown below should return a new DataFrame with the mean of column sqft from DataFrame storesDF in column sqftMean. Choose the response that correctly fills in the numbered blanks within the code block to complete this task. Code block:storesDF.__1__(__2__(__3__).alias("sqftMean"))
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. 1. agg2. mean3. col("sqft") — đáp án hiện tại
- B. 1. withColumn2. mean3. col("sqft")
- C. 1. agg2. average3. col("sqft")
- D. 1. mean2. col3. "sqft"
- E. 1. agg2. mean3. "sqft"
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.