QuestionQ255

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

The code block below must return a new DataFrame in which rows in DataFrame storesDF that contain at least one missing value are dropped. Select the response that correctly fills the numbered blanks in the code block to complete this task.

StoresDF.__1__.__2__(__3__ = __4__)  
Explanation

DataFrame.dropna() removes missing-value entries and returns a new DataFrame unless inplace=True is specified. With the default row axis, how="any" removes every row that has at least one missing value; how="all" would remove only rows whose values are all missing.

Learn more

Community Discussion

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