QuestionQ47

VerifiedData Processing

A data scientist wants to explore summary statistics for the Spark DataFrame spark_df. The data scientist needs to view the count, mean, standard deviation, minimum, maximum, and interquartile range (IQR) for each numerical feature.

Which of the following lines of code can the data scientist run to accomplish this task?

Explanation

DataFrame.summary() computes count, mean, standard deviation, minimum, maximum, and approximate quartiles at 25%, 50%, and 75% by default. The IQR is calculated as the 75th-percentile value minus the 25th-percentile value.

Learn more

Community Discussion

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