Câu 66: Databricks Certified Associate Developer for Apache Spark
The code block shown below should return a new DataFrame where single quotes in column storeSlogan have been replaced with double quotes. Choose the response that correctly fills in the numbered blanks within the code block to complete this task. A sample of DataFrame storesDF is below: Code block:storesDF.__1__(__2__…
Nội dung câu hỏi
The code block shown below should return a new DataFrame where single quotes in column storeSlogan have been replaced with double quotes. Choose the response that correctly fills in the numbered blanks within the code block to complete this task. A sample of DataFrame storesDF is below: Code block:storesDF.__1__(__2__, __3__(__4__, __5__, __6__))
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. 1. withColumn2. "storeSlogan"3. regexp_extract4. col("storeSlogan")5. "\""6. "'"
- B. 1. newColumn2. storeSlogan3. regexp_extract4. col(storeSlogan)5. "\""6. "'"
- C. 1. withColumn2. "storeSlogan"3. regexp_replace4. col("storeSlogan")5. "\""6. "'"
- D. 1. withColumn2. "storeSlogan"3. regexp_replace4. col("storeSlogan")5. "'"6. "\"" — đáp án hiện tại
- E. 1. withColumn2. "storeSlogan"3. regexp_extract4. col("storeSlogan")5. "'"6. "\""
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.