QuestionQ156

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

Which of these code blocks returns a DataFrame after dropping rows in DataFrame storesDF that contain missing values in every column?

Explanation

PySpark’s DataFrameNaFunctions.drop removes rows containing null or NaN values. Setting how to "all" removes a row only when all columns under consideration are missing; without a subset, it considers every column in the DataFrame.

Learn more

Community Discussion

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