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

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

The code block shown contains an error. The code block is intended to return a new DataFrame where column sqft from DataFrame storesDF has had its missing values replaced with the value 30,000. Identify the error. A sample of DataFrame storesDF is displayed below: Code block:storesDF.na.fill(30000, col("sqft"))

Nội dung câu hỏi

The code block shown contains an error. The code block is intended to return a new DataFrame where column sqft from DataFrame storesDF has had its missing values replaced with the value 30,000. Identify the error. A sample of DataFrame storesDF is displayed below: Code block:storesDF.na.fill(30000, col("sqft"))

Minh họa câu hỏi

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. The argument to the subset parameter of fill() should be a string column name or a list of string column names rather than a Column object. — đáp án hiện tại
  2. B. The na.fill() operation does not work and should be replaced by the dropna() operation.
  3. C. he argument to the subset parameter of fill() should be a the numerical position of the column rather than a Column object.
  4. D. The na.fill() operation does not work and should be replaced by the nafill() operation.
  5. E. The na.fill() operation does not work and should be replaced by the fillna() operation.

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ề