Câu 97: Databricks Certified Associate Developer for Apache Spark
Which of the following code blocks returns a new DataFrame where column division is the first two characters of column division in DataFrame storesDF?
Nội dung câu hỏi
Which of the following code blocks returns a new DataFrame where column division is the first two characters of 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.withColumn(“division”, substr(col(“division”), 0, 2))
- B. storesDF.withColumn(“division”, susbtr(col(“division”), 1, 2))
- C. storesDF,withColumn(“division”, col(“division”).substr(0, 3))
- D. storesDF.withColumn(“division”, col(“division”).substr(0, 2))
- E. storesDF.withColumn(“division”, col(“division”).substr(l, 2)) — đáp án hiện tại
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.