AnsweredAssumed Answered

MapR Certified Spark Developer v1 Study Guide - Lab 2.2.2 Inspect the Data

Question asked by muonstat on May 4, 2016
Latest reply on Nov 10, 2016 by cmcdonald


The solution on question 9 in Lab 2.2.2 Inspect the Data should be

xboxes.select("auctionid", "price").distinct.describe("price").show

and not

xboxes.distinct.describe("price").show

as the second solution weight the price by the number of bids for each auction. So, a xbox auction with many bids gets a higher influence on the final statistics. I understood the question in that way that we want to have statistics on the final price, so just the final price for each auction has to be considered.

 

Thanks for the great course.

 

Simon

Outcomes