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