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

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.

  1. A. storesDF.agg(approx_count_distinct(col("division")).alias("divisionDistinct"))
  2. B. storesDF.agg(approx_count_distinct(col("division"), 0.01).alias("divisionDistinct"))
  3. C. storesDF.agg(approx_count_distinct(col("division"), 0.15).alias("divisionDistinct")) — đáp án hiện tại
  4. D. storesDF.agg(approx_count_distinct(col("division"), 0.0).alias("divisionDistinct"))
  5. 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.

Câu hỏi liền kề