QuestionQ247

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

Which of the following operations can fill missing values in a specified column using a specified value?

Explanation

DataFrame.na.fill() and DataFrame.fillna() both replace null values with a supplied value and support specifying the target column or columns through the subset parameter. They are aliases; DataFrame.nafill() is not a valid PySpark DataFrame operation.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!