From the course: Data Analysis with Python and Pandas

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Challenge: Aggregation and sorting

Challenge: Aggregation and sorting

- [Instructor] All right, everybody. We got a new message in from Ross Retail. Subject line is top tier products. He writes us. Hey there, thank you for all your hard work. I know we're working with small sample sizes, but we're proving that analysis can be done in Python. Can you calculate the mean, min, max, and median of our three most expensive product prices? Then calculate the number of unique price tiers we have. Thanks. Once again, we'll be working out of our section one NumPy assignments notebook. We'll also be provided with a price tiers array in our notebook. Let's take a quick look. All right, so we're going to be working with the same array of prices that we created in assignment four. So if you're still working in the same session, you're working through this all at once, you won't need to recreate this array. But if you are, you'll need to go ahead and grab that array from up in assignment four. Once you've created the price array, we're going to want to grab the three…

Contents