
Ultimate access to all questions.
Identify the error in the following code block intended to replace missing values in the sqft column of DataFrame storesDF with the value 30,000:
storesDF.na.fill(30000, col("sqft"))
storesDF.na.fill(30000, col("sqft"))
Sample of DataFrame storesDF:
storeld sqft
0 43161
1 51200
2 null
3 78367
4 null
...
storeld sqft
0 43161
1 51200
2 null
3 78367
4 null
...
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.
B
The na.fill() operation does not work and should be replaced by the dropna() operation.
C
The argument to the subset parameter of fill() should be a the numerical position of the column rather than a Column object.
D
The na.fill() operation does not work and should be replaced by the nafill() operation.
E
The na.fill() operation does not work and should be replaced by the fillna() operation.