Jump to another module Developing Apache Spark™ DataFrame/DataSet API Applications (part 1 of 6) Developing Apache Spark™ DataFrame/DataSet API Applications (part 2 of 6) Developing Apache Spark™ DataFrame/DataSet API Applications (part 3 of 6) Developing Apache Spark™ DataFrame/DataSet API Applications (part 4 of 6) Developing Apache Spark™ DataFrame/DataSet API Applications (part 5 of 6) Developing Apache Spark™ DataFrame/DataSet API Applications (part 6 of 6) Apache Spark Architecture and Components (part 1 of 2) Apache Spark Architecture and Components (part 2 of 2) Troubleshooting and Tuning Apache Spark DataFrame API Applications. (part 1 of 2) Troubleshooting and Tuning Apache Spark DataFrame API Applications. (part 2 of 2) Structured Streaming Using Spark SQL Using Pandas API on Spark Using Spark Connect to deploy applications Question 6 of 31 All questionsWhich of the following code blocks returns a new DataFrame in which column sqft from DataFrame storesDF has its missing values replaced with the value 30,000?
A sample of DataFrame storesDF is shown below:
Exhibit Table Text version
storeId
sqft
0
43161
1
51200
2
null
3
78367
4
null
...
...
A A. storesDF.na.fill(30000, Seq("sqft")) B B. storesDF.nafill(30000, col("sqft")) C C. storesDF.na.fill(30000, col("sqft")) D D. storesDF.fillna(30000, col("sqft")) E E. storesDF.na.fill(30000, "sqft")
Previous Check answer
A –E selectEnter check answerF flag← → move? all shortcuts