Câu 58: Databricks Certified Associate Developer for Apache Spark
Which of the following code blocks fails to return a DataFrame reverse sorted alphabetically based on column division?
Nội dung câu hỏi
Which of the following code blocks fails to return a DataFrame reverse sorted alphabetically based on column division?
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.orderBy("division", ascending – False)
- B. storesDF.orderBy(["division"], ascending = [0])
- C. storesDF.orderBy(col("division").asc()) — đáp án hiện tại
- D. storesDF.sort("division", ascending – False)
- E. storesDF.sort(desc("division"))
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.