Câu 9: Databricks Certified Associate Developer for Apache Spark
Which of the following code blocks will most quickly return an approximation for the number of distinct values in column division in DataFrame storesDF?
Nội dung câu hỏi
Which of the following code blocks will most quickly return an approximation for the number of distinct values in column division in DataFrame storesDF?
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. storesDF.agg(approx_count_distinct(col("division")).alias("divisionDistinct"))
- B. storesDF.agg(approx_count_distinct(col("division"), 0.01).alias("divisionDistinct"))
- C. storesDF.agg(approx_count_distinct(col("division"), 0.15).alias("divisionDistinct")) — đáp án hiện tại
- D. storesDF.agg(approx_count_distinct(col("division"), 0.0).alias("divisionDistinct"))
- E. storesDF.agg(approx_count_distinct(col("division"), 0.05).alias("divisionDistinct"))
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.