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?
E is answer. It's tested.
A)AttributeError: module 'pyspark.sql.functions' has no attribute 'Seq'
B)AttributeError: 'DataFrame' object has no attribute 'nafill'
C)PySparkTypeError: [NOT_LIST_OR_TUPLE] Argument `subset` should be a list or tuple, got Column.
D)PySparkTypeError: [NOT_LIST_OR_TUPLE] Argument `subset` should be a list or tuple, got Column.
Check fill function at scala API docs
https://spark.apache.org/docs/3.0.0/api/scala/org/apache/spark/sql/DataFrameNaFunctions.html#fill(value:Long,cols:Array%5BString%5D):org.apache.spark.sql.DataFrame
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Samir_91
5 months, 2 weeks agoSamir_91
5 months, 3 weeks agohosniadel666
8 months, 1 week agoazure_bimonster
9 months, 2 weeks agolearnsh1
9 months, 3 weeks ago