Câu 103: Databricks Certified Associate Developer for Apache Spark
Which of the following code blocks returns a new DataFrame where column sqft from DataFrame storesDF has had its missing values replaced with the value 30,000?A sample of DataFrame storesDF is below:
Nội dung câu hỏi
Which of the following code blocks returns a new DataFrame where column sqft from DataFrame storesDF has had its missing values replaced with the value 30,000?A sample of DataFrame storesDF is below:
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.na.fill(30000, Seq("sqft"))
- B. storesDF.nafill(30000, col("sqft"))
- C. storesDF.na.fill(30000, col("sqft"))
- D. storesDF.fillna(30000, col("sqft"))
- E. storesDF.na.fill(30000, "sqft") — đá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.