Exercise

Box plot of company revenues

You have been contracted by a New York Stock exchange firm who are interested in upping their data visualization capabilities.

They are cautious about this new technology so have tasked you with something simple first. To display the distribution of the revenues of top companies in the USA. They are particularly interested in what kind of revenue puts you in the 'top bracket' of companies.

They also want to know if there are any outliers and how they can explore this in the plot. This sounds like a perfect opportunity for a box plot.

In this exercise, you will help the investment team by creating a box plot of the revenue of top US companies.

There is a revenues DataFrame already loaded for your use.

Instructions

100 XP
  • Examine the head of the provided revenues DataFrame that has been printed for you to see what it contains.
  • Create a simple box plot, setting the appropriate y-axis for company revenue data.
  • Set the hover_data (a list of one string value) to show the company name.