QuestionQ204

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

The following code block should return a collection of summary statistics for the sqft column in DataFrame storesDF. Choose the response that correctly fills the numbered blanks in the code block to complete this task.

storesDF.__1__(__2__)  
Explanation

DataFrame.describe(*cols) computes basic statistics for specified numeric or string columns, and its column argument is a string (or list of strings). Therefore, storesDF.describe("sqft") produces the statistics for sqft.

Learn more

Community Discussion

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