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

Câu 24: Databricks Certified Associate Developer for Apache Spark

Which of the following code blocks returns a new DataFrame from DataFrame storesDF where column storeId is of the type string?

Nội dung câu hỏi

Which of the following code blocks returns a new DataFrame from DataFrame storesDF where column storeId is of the type string?

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.withColumn("storeId, cast(col("storeId"), StringType()))
  2. B. storesDF.withColumn("storeId, col("storeId").cast(StringType())) — đáp án hiện tại
  3. C. storesDF.withColumn("storeId, cast(storeId).as(StringType)
  4. D. storesDF.withColumn("storeId, col(storeId).cast(StringType)
  5. E. storesDF.withColumn("storeId, cast("storeId").as(StringType()))

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ề